/* ==========================================================================
   Koventure Corporate Website Stylesheet
   Design System: Premium Industrial Tech, Glassmorphism, Micro-animations
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
  /* Colors */
  --color-primary: #0f172a;       /* Dark slate blue */
  --color-secondary: #475569;     /* Slate grey */
  --color-accent: #16a34a;        /* Vibrant brand green */
  --color-accent-hover: #15803d;  /* Dark brand green */
  --color-bg-dark: #090d16;       /* Extreme dark */
  --color-bg-light: #f8fafc;      /* Pristine off-white */
  --color-text-dark: #0f172a;     /* Dark slate for light bg */
  --color-text-light: #f1f5f9;    /* Light slate for dark bg */
  --color-text-muted: #64748b;    /* Greyed text */
  --color-success: #10b981;       /* Emerald green */
  --color-danger: #ef4444;        /* Crimson red */
  
  /* Glassmorphism & Borders */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --shadow-premium: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  --shadow-inset: inset 0 2px 4px 0 rgba(255, 255, 255, 0.06);

  /* Fonts */
  --font-headers: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Grid & Spacing */
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

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

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

/* --- UTILITY CLASSES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.text-center { text-align: center; }
.text-secondary { color: var(--color-text-muted); }
.font-sm { font-size: 0.875rem; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.p-md { padding: 16px; }
.d-none { display: none !important; }
.required { color: var(--color-danger); }

/* --- PREMIUM CONTAINER SHADOWS --- */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.12);
}

.img-premium {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn-danger {
  background-color: var(--color-danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-block {
  width: 100%;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  color: #86efac; /* Mint green for VENTURE text */
}

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

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-headers);
  font-weight: 500;
  font-size: 1rem;
  color: #334155; /* Dark slate grey on white background */
  position: relative;
  padding: 8px 0;
}

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

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

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

.admin-nav-btn {
  background-color: rgba(22, 163, 74, 0.06);
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--color-accent) !important;
}

.admin-nav-btn:hover {
  background-color: var(--color-accent);
  color: white !important;
  border-color: var(--color-accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

/* --- SECTIONS COMMON --- */
.page-section {
  display: none;
  padding: 120px 0 80px 0;
  min-height: calc(100vh - 80px);
}

.page-section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  margin-bottom: 48px;
}

.subheading {
  font-family: var(--font-headers);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-top: 12px;
}

.subsection-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

/* --- HOME HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 24px;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  padding: 60px;
  z-index: 2;
}

.hero-section .badge {
  background-color: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 850;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-overlay-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background-color: var(--color-accent);
  top: -100px;
  right: -50px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background-color: #3b82f6;
  bottom: -150px;
  left: 20%;
}

.quick-values-container {
  margin-top: -60px;
  padding: 0 48px;
  position: relative;
  z-index: 3;
}

.value-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: 0 20px 40px 0 rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(241, 245, 249, 0.8);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px 0 rgba(15, 23, 42, 0.1);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--color-accent);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

/* --- ABOUT SECTION --- */
.about-intro-grid {
  align-items: center;
  margin-bottom: 60px;
}

.about-text-content .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 20px;
}

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

.about-img-container {
  position: relative;
  padding-right: 20px;
}

.about-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 0;
  background-color: var(--color-primary);
  color: white;
  padding: 20px 30px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-badge .years {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.core-cards-grid {
  margin-bottom: 80px;
}

.core-card {
  padding: 30px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(241, 245, 249, 0.8);
  transition: var(--transition-smooth);
}

.core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.core-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(217, 119, 6, 0.2);
  padding-bottom: 8px;
}

.core-card p {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* ABOUT TIMELINE */
.timeline-container {
  margin: 100px 0;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: rgba(15, 23, 42, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--color-accent);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 24px;
  background-color: white;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(241, 245, 249, 0.8);
}

.timeline-item:hover::after {
  background-color: var(--color-accent);
  transform: scale(1.3);
}

.timeline-year {
  font-family: var(--font-headers);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.timeline-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

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

/* MEET THE TEAM */
.our-team-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.team-layout {
  align-items: center;
  gap: 48px;
}

.team-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.team-img-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.team-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leader-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 1px solid rgba(241, 245, 249, 0.8);
}

.leader-img {
  width: 220px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 4px solid var(--color-accent);
  box-shadow: var(--shadow-premium);
}

.leader-info h4 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.leader-info .title {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- PRODUCTS SECTION --- */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.product-detail-card {
  padding: 48px;
}

.product-info-header {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
}

.product-cat-img {
  width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-info-text h3 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.product-info-text p {
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.subcategory-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(241, 245, 249, 0.8);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.subcategory-card h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 8px;
}

.product-items-list {
  list-style: none;
}

.product-items-list li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  color: var(--color-secondary);
}

.product-items-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-size: 0.75rem;
  top: 4px;
}

/* --- RESEARCH SECTION --- */
.research-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

.research-section-block {
  width: 100%;
}

.research-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.research-section-header h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-headers);
}

.research-section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(71, 85, 105, 0.2);
}

.research-section-text {
  margin-bottom: 20px;
  max-width: 1000px;
}

.research-section-text .lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.research-section-text .body-text {
  color: var(--color-secondary);
}

/* --- CAREERS SECTION --- */
.benefits-grid {
  margin-bottom: 60px;
}

.benefit-card {
  padding: 30px 24px;
  text-align: center;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(241, 245, 249, 0.8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.benefit-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.benefit-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.careers-jobs-section {
  margin-bottom: 80px;
}

/* Accordion Open Positions */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.accordion-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: white;
  transition: var(--transition-smooth);
}

.accordion-header:hover {
  background: rgba(15, 23, 42, 0.02);
}

.job-meta-title h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.job-tags {
  display: flex;
  gap: 8px;
}

.job-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background-color: #f1f5f9;
  color: var(--color-secondary);
}

.job-tag.tag-accent {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--color-accent);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-top: 0 solid rgba(15, 23, 42, 0.08);
}

.accordion-item.open .accordion-content {
  border-top-width: 1px;
}

.accordion-body {
  padding: 30px;
  background-color: #fafbfc;
}

.job-desc-group {
  margin-bottom: 24px;
}

.job-desc-group h5 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.job-desc-group ul {
  list-style: none;
}

.job-desc-group ul li {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.job-desc-group ul li::before {
  content: '•';
  color: var(--color-accent);
  position: absolute;
  left: 5px;
  font-size: 1.2rem;
  top: -2px;
}

/* Forms styling */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group label {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: white;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-trigger {
  padding: 24px;
  border: 2px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-sm);
  text-align: center;
  background-color: #fafbfc;
  transition: var(--transition-smooth);
}

.file-upload-trigger i {
  font-size: 2.25rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: block;
}

.file-upload-trigger span {
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.file-upload-input:hover + .file-upload-trigger,
.file-upload-input:focus + .file-upload-trigger {
  border-color: var(--color-accent);
  background-color: rgba(217, 119, 6, 0.02);
}

.careers-apply-form {
  padding: 48px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* --- CONTACT US SECTION --- */
.contact-layout {
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  padding: 36px;
}

.contact-card h3 {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 12px;
}

.contact-card h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

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

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

.contact-detail-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
  width: 20px;
  margin-top: 4px;
  text-align: center;
}

.contact-detail-item p {
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.contact-form-column {
  padding: 40px;
}

.contact-maps-section {
  margin-top: 60px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 60px;
}

.maps-grid {
  gap: 24px;
  margin-top: 30px;
}

.map-wrapper {
  padding: 16px;
}

.map-wrapper h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 8px;
}

.map-wrapper iframe {
  border-radius: var(--radius-sm);
}

/* --- ADMIN LOGIN CARD --- */
.login-card {
  width: 440px;
  padding: 48px;
  text-align: center;
}

.login-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.login-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.input-icon-wrapper input {
  width: 100%;
  padding-left: 48px !important;
}

/* --- ADMIN PANEL SYSTEM --- */
.admin-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

.admin-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 30px 20px;
  position: sticky;
  top: 100px;
}

.admin-profile {
  text-align: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: white;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.admin-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.admin-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-accent);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background-color: rgba(15, 23, 42, 0.05);
  color: var(--color-primary);
}

.admin-nav-link.active {
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 12px;
  background-color: rgba(217, 119, 6, 0.04);
  color: var(--color-accent);
}

.badge-msg-count, .badge-app-count {
  margin-left: auto;
  background-color: var(--color-accent);
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.75rem;
}

.admin-logout-btn {
  margin-top: 10px;
}

.admin-main {
  flex-grow: 1;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-premium);
  min-height: 600px;
  padding: 40px;
}

.admin-tab-content {
  display: none;
}

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

.admin-tab-title {
  font-size: 2rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 16px;
}

.admin-stats-grid {
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.stat-card:hover {
  transform: none;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.message { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon.applicant { background-color: rgba(217, 119, 6, 0.1); color: var(--color-accent); }
.stat-icon.products { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); }

.stat-info h3 {
  font-size: 1.75rem;
  line-height: 1.1;
}

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

.admin-dashboard-tables {
  align-items: flex-start;
}

.recent-card {
  padding: 24px;
}

.recent-card:hover {
  transform: none;
}

.recent-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.875rem;
}

.admin-table th {
  font-family: var(--font-headers);
  font-weight: 700;
  color: var(--color-primary);
  background-color: #f8fafc;
}

.admin-table tr:hover td {
  background-color: rgba(15, 23, 42, 0.01);
}

/* ADMIN CMS EDITORS */
.admin-cms-form {
  gap: 24px;
}

.admin-subsection-title {
  font-size: 1.35rem;
  margin: 30px 0 16px 0;
  border-bottom: 2px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 8px;
  color: var(--color-accent);
}

.admin-cms-card {
  background-color: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.admin-card-remove-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  font-size: 1.1rem;
}

.admin-image-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-img-preview {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.admin-img-input-file {
  display: none;
}

.admin-hr {
  border: 0;
  height: 1px;
  background-color: rgba(15, 23, 42, 0.1);
  margin: 30px 0;
}

/* Messages & Inbox details */
.inbox-item, .applicant-item {
  background-color: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 16px;
}

.inbox-header, .applicant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 12px;
}

.inbox-title h4, .applicant-title h4 {
  font-size: 1.15rem;
}

.inbox-meta, .applicant-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inbox-date, .applicant-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background-color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
}

.inbox-body, .applicant-body {
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.applicant-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--color-accent);
  font-weight: 600;
  border: 1px solid var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: white;
}

.applicant-cv-link:hover {
  background-color: var(--color-accent);
  color: white;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 80px 0 20px 0;
  border-top: 1px solid var(--glass-border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.75rem;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img-footer {
  height: 48px;
  width: auto;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  object-fit: contain;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-links h4, .footer-contact-summary h4 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact-summary h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

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

.footer-links ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links ul a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-summary p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-summary i {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- TOAST & NOTIFICATION --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border-left: 4px solid var(--color-accent);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left-color: var(--color-success); }
.toast.danger { border-left-color: var(--color-danger); }

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-up-delay {
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.animate-fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.4s forwards;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-container { flex-direction: column; }
  .admin-sidebar { width: 100%; position: static; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    display: block;
    padding: 20px 0;
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }
  
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .hero-content { padding: 40px 24px; }
  .quick-values-container { padding: 0 24px; margin-top: -30px; }
  
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; }
  .timeline-item.right { left: 0; }
  .timeline-item.right::after, .timeline-item.left::after { left: 21px; }
  
  .product-info-header { flex-direction: column; text-align: center; }
  .product-cat-img { width: 100%; }
  
  .form-grid { grid-template-columns: 1fr; }
  .careers-apply-form, .product-detail-card, .contact-form-column { padding: 24px; }
  
  .research-section-gallery.single-img img { height: 240px; }
  
  .admin-main { padding: 20px; }
}

/* --- DYNAMIC RESEARCH SECTION GALLERY --- */
.research-section-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.research-section-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.research-section-gallery img:hover {
  transform: scale(1.03);
}

/* If there's only 1 image in the section, make it large */
.research-section-gallery.single-img {
  grid-template-columns: 1fr;
}

.research-section-gallery.single-img img {
  height: 380px;
  border-radius: var(--radius-md);
}

/* ADMIN CMS RESEARCH IMAGES LIST */
.admin-res-sec-images-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  background-color: #fafbfc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.admin-res-sec-image-thumb-wrapper {
  position: relative;
  width: 90px;
  height: 70px;
}

.admin-res-sec-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.admin-res-sec-image-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-danger);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-res-sec-image-delete-btn:hover {
  background-color: #dc2626;
}

/* ADMIN PASSWORD CHANGE */
.admin-password-card {
  max-width: 500px;
  margin: 30px auto;
  padding: 30px;
}
