/* Modern Professional Theme for QWARKAI Engineering and Design - Black and Red Theme */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #000000; /* Black */
  --secondary-color: #dc3545; /* Red */
  --accent-color: #dc3545; /* Red accent */
  --light-bg: #ffffff; /* White background */
  --white: #ffffff;
  --dark-text: #000000;
  --medium-text: #333333;
  --light-text: #666666;
  --border-color: #e1e8ed;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --section-padding: 40px 0;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--medium-text);
  background-color: var(--light-bg);
}

/* Override Bootstrap defaults for black and red theme */
.bg-dark-custom {
  background-color: #000000 !important;
}

.text-red {
  color: #dc3545 !important;
}

.btn-red {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-red:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-black {
  background-color: #000000;
  border-color: #000000;
  color: white;
}

.btn-black:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.navbar-brand, .nav-link {
  color: var(--primary-color) !important;
}

.navbar-brand:hover, .nav-link:hover {
  color: var(--secondary-color) !important;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  padding: 0;
  line-height: 1;
}

.brand-main,
.brand-sub {
  color: inherit;
  transition: color 0.25s ease;
}

.brand-main {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.6em;
  margin-top: 0.08rem;
  padding-left: 0.48em; /* optical centering */
  white-space: nowrap;
}

.brand-lockup:hover {
  color: #c62828;
}

/* Homepage sections */
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  background-color: #f8f9fa;
}

.capabilities-intro {
  max-width: 760px;
}

.discipline-services-intro {
  max-width: 820px;
}

.capability-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.discipline-summary-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discipline-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.discipline-summary-list,
.capability-detail-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.discipline-summary-list li,
.capability-detail-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.discipline-summary-list li::before,
.capability-detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.4;
}

.discipline-summary-list li:last-child,
.capability-detail-list li:last-child {
  margin-bottom: 0;
}

.discipline-summary-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.discipline-summary-link:hover {
  color: #bd2130;
  text-decoration: underline;
}

.icon-wrap {
  font-size: 2rem;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-card h4 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.capability-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Enhanced typography */
h1, h2, h3, h4 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Section styling with improved spacing */
section {
  margin: var(--section-padding);
}

/* HR separator with enhanced styling */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 50px 0;
}

/* Enhanced accordion styles with modern design */
.accordion-container {
  margin-top: 25px;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.accordion-header {
  width: 100%;
  padding: 20px 25px;
  background: linear-gradient(to right, var(--white), #fafcff);
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--medium-text);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  position: relative;
}

.accordion-header:hover {
  background: linear-gradient(to right, #f0f7ff, #f5fbff);
}

.accordion-header:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.accordion-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  min-width: 18px;
  display: inline-block;
  color: var(--secondary-color);
}

.accordion-title {
  flex-grow: 1;
}

.accordion-header small {
  color: var(--light-text);
  font-weight: normal;
  margin-left: auto;
  font-size: 0.9rem;
  background: rgba(220, 53, 69, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.accordion-panel {
  padding: 25px;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  line-height: 1.7;
}

.accordion-panel ul {
  list-style-type: none;
  padding-left: 20px;
  margin-top: 15px;
}

.accordion-panel li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  padding: 8px 0;
}

.accordion-panel li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
  top: 8px;
}

/* Enhanced contact section */
.contact {
  background: linear-gradient(135deg, #f8f9fa, #eef2f7);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-top: 30px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.contact h2 {
  text-align: center;
}

.contact h3 {
  color: var(--primary-color);
  text-align: center;
  margin: 15px 0;
}

.contact p {
  text-align: center;
  margin-bottom: 10px;
  color: var(--medium-text);
}

/* Enhanced navigation */
.nav-container {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  margin: -20px -20px 30px -20px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 4px 6px -6px rgba(0,0,0,0.1);
}

.nav-container nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-container a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 30px;
  transition: var(--transition);
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.nav-container a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
  border-color: rgba(220, 53, 69, 0.2);
  transform: translateY(-2px);
}

.nav-container a.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Responsive design enhancements */
@media (max-width: 768px) {
  .profile-header h1 {
    font-size: 2.2rem;
  }
  
  .profile-header {
    padding: 40px 15px 35px;
  }
  
  .profile-header .subtitle {
    font-size: 1.1rem;
  }
  
  section {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .accordion-header {
    padding: 16px;
    font-size: 1rem;
  }
  
  .accordion-panel {
    padding: 20px;
  }
  
  .nav-container nav {
    gap: 8px;
  }
  
  .nav-container a {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-container a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .profile-header h1 {
    font-size: 1.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
}

/* Animation for interactive elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-profile > section {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Profile page styles */
.profile-header {
  text-align: center;
  padding: 60px 20px 50px;
  background: linear-gradient(135deg, var(--primary-color), #1f1f1f);
  color: var(--white);
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-header:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg);
}

.profile-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  position: relative;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-header .subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.intro {
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(248,249,250,0.9)), 
              url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.intro p {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--dark-text);
}

.sectors ul {
  list-style-type: none;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.sectors li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--medium-text);
  transition: var(--transition);
  padding: 12px 15px;
  border-radius: 6px;
  background-color: rgba(236, 240, 241, 0.4);
}

.sectors li:hover {
  background-color: rgba(220, 53, 69, 0.08);
  transform: translateX(5px);
}

.sectors li:before {
  content: "●";
  position: absolute;
  left: 10px;
  color: var(--accent-color);
  font-size: 1.5rem;
  line-height: 1;
}

.experience ul {
  list-style-type: none;
  padding-left: 20px;
  margin-top: 20px;
}

.experience li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  padding: 12px 15px;
  border-radius: 6px;
  background-color: rgba(236, 240, 241, 0.3);
}

.experience li:before {
  content: "▶";
  position: absolute;
  left: 10px;
  color: var(--secondary-color);
  font-size: 0.9rem;
  transform: rotate(90deg);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .profile-header h1 {
    font-size: 2.2rem;
  }

  .profile-header {
    padding: 40px 15px 35px;
  }

  .profile-header .subtitle {
    font-size: 1.1rem;
  }

  section {
    padding: 0 10px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .accordion-header {
    padding: 16px;
    font-size: 1rem;
  }

  .accordion-panel {
    padding: 20px;
  }

  .nav-container nav {
    gap: 8px;
  }

  .nav-container a {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .sectors ul {
    grid-template-columns: 1fr;
  }

  .capability-card h4 {
    font-size: 1.35rem;
  }

  .capability-card p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .nav-container a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .profile-header h1 {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

/* Animation for interactive elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-profile > section {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* New homepage section styles */

/* Company Overview Section */
.overview-image-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capabilities-eyebrow {
  display: inline-block;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.capabilities-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.capabilities-jump-links a {
  text-decoration: none;
  color: var(--primary-color);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.capabilities-jump-links a:hover {
  color: var(--secondary-color);
  border-color: rgba(220, 53, 69, 0.35);
  transform: translateY(-2px);
}

.capabilities-page-hero,
.capabilities-jump-nav,
.capabilities-page-body,
.capabilities-page-cta {
  margin: 0;
}

.capabilities-page-hero {
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
}

.capabilities-jump-nav {
  padding-top: 1rem !important;
  padding-bottom: 1.25rem !important;
}

.capabilities-page-body {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.capability-detail-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem !important;
}

/* Suppress global h2 decorative underline and extra padding inside cards */
.capability-detail-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

.capability-detail-card h2::after {
  display: none;
}

.capability-detail-heading {
  gap: 1rem !important;
  margin-bottom: 0;
  align-items: center !important;
}

.capability-detail-heading .icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.capability-detail-intro {
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.capability-detail-list {
  margin-top: 0;
  margin-bottom: 0;
}

.capability-detail-list li {
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.capability-detail-list li:last-child {
  margin-bottom: 0;
}

.capabilities-page-cta {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Process Timeline Section */
.process-container {
  margin: 40px 0;
}

.process-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #e1e8ed;
  z-index: 1;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 15px;
  margin-bottom: 20px;
  min-width: calc(100% / 6);
}

@media (max-width: 992px) {
  .process-step {
    min-width: calc(100% / 3);
  }
}

@media (max-width: 576px) {
  .process-step {
    min-width: 100%;
  }
  
  .process-timeline::before {
    display: none;
  }
}

.process-step-number {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 0 auto 15px;
}

.process-step-content {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.process-step-content h4 {
  font-size: 1rem;
  margin: 0;
  color: var(--dark-text);
}

/* Sector Cards */
.sector-card {
  transition: var(--transition);
  height: 100%;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.sectors-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
}

/* Why Qwarkai Pillars */
.pillar-card {
  transition: var(--transition);
  height: 100%;
  padding: 2rem;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Vision and Mission Cards */
#vision-mission .card {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

#vision-mission .card h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

#vision-mission .card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

#vision-mission .card ul li:last-child {
  margin-bottom: 0;
}

/* Final CTA Section */
#final-cta {
  background: linear-gradient(135deg, var(--primary-color), #1f1f1f) !important;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .capability-detail-heading {
    flex-direction: column;
  }

  .capability-detail-heading .icon-wrap {
    width: 64px;
    height: 64px;
  }

  .capabilities-jump-links {
    justify-content: flex-start;
  }

  .capabilities-jump-links a {
    width: 100%;
    text-align: center;
  }

  .capability-detail-card {
    padding: 1.5rem !important;
  }

  .process-step {
    min-width: calc(100% / 2);
  }
  
  .process-timeline::before {
    top: 60px;
  }
  
  .process-step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1rem;
  }
  
  .process-step-content {
    padding: 10px;
  }
  
  .process-step-content h4 {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .discipline-summary-card {
    padding: 1.5rem !important;
  }

  .process-step {
    min-width: 100%;
  }
  
  .sectors-intro {
    margin-bottom: 2rem;
  }
}
