/* ============================================
   Softlink Systems — About Us Styles
   A modern, professional redesign.
   This file is ONLY loaded by about_us.html.
   ============================================ */

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

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

body.about-page {
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #2d3748;
  background: #f8f9fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-title span {
  color: #c0392b;
}

/* ---------- Header / Navigation ---------- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.home-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.home-logo img {
  height: 48px;
  width: auto;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.home-nav a:hover {
  color: #c0392b;
  background: rgba(192,57,43,0.06);
}

.home-nav a.active {
  color: #c0392b;
  background: rgba(192,57,43,0.08);
  font-weight: 600;
}

/* ---------- Nav Dropdown ---------- */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.arrow-down {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.nav-dropdown a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569 !important;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: all 0.2s;
  text-align: left;
  display: block;
  width: 100%;
}
.nav-dropdown a:hover {
  color: #c0392b !important;
  background: rgba(192,57,43,0.05) !important;
}
.nav-dropdown-wrapper:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-wrapper:hover .arrow-down {
  transform: rotate(180deg);
}

.home-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a202c;
}

.home-header-phone svg {
  width: 18px;
  height: 18px;
  color: #c0392b;
}

/* ---------- Hamburger Menu ---------- */
.home-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #1a202c;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hamburger.open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #c0392b;
}

.home-hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.home-hamburger.open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #c0392b;
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Hero / Banner Section ---------- */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- About Content Layout ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

.about-details {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.about-details p {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-details p:last-child {
  margin-bottom: 0;
}

/* Sidebar values */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.sidebar-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
  border-left: 4px solid #c0392b;
  padding-left: 12px;
}

.sidebar-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

/* ---------- Services Strip ---------- */
.about-services-section {
  background: #f8f9fc;
  padding: 60px 0 80px;
  border-top: 1px solid #e2e8f0;
}

.services-title {
  text-align: center;
  margin-bottom: 40px;
}

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.service-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  border-color: #c93c2c;
}

.service-item-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  background: rgba(192, 57, 43, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0392b;
  flex-shrink: 0;
}

.service-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a202c;
}

/* ---------- Footer ---------- */
.home-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
  font-size: 0.85rem;
}

.home-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.home-footer-links {
  display: flex;
  gap: 20px;
}

.home-footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  font-size: 0.85rem;
}

.home-footer-links a:hover {
  color: #fff;
}

.home-footer-social {
  display: flex;
  gap: 12px;
}

.home-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.home-footer-social a:hover {
  background: rgba(192,57,43,0.6);
  transform: translateY(-2px);
}

.home-footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.2s;
}

.home-footer-social a:hover svg {
  fill: #fff;
}

.home-footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .services-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hamburger Menu Toggle */
  .home-hamburger {
    display: flex;
  }
  
  .home-header-phone {
    display: none !important;
  }

  .home-nav {
    display: none;
  }

  .home-nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 105;
    animation: homeFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .home-nav.open a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    padding: 12px 28px;
    width: 100%;
    text-align: center;
  }

  .home-nav.open a:hover,
  .home-nav.open a.active {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.05);
  }

  @keyframes homeFadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  /* Footer responsive */
  .home-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-footer-left {
    justify-content: center;
  }

  .home-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .home-footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-list-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for services list grid cards */
.services-list-grid > *:nth-child(1) { transition-delay: 0.05s; }
.services-list-grid > *:nth-child(2) { transition-delay: 0.1s; }
.services-list-grid > *:nth-child(3) { transition-delay: 0.15s; }
.services-list-grid > *:nth-child(4) { transition-delay: 0.2s; }
.services-list-grid > *:nth-child(5) { transition-delay: 0.25s; }
.services-list-grid > *:nth-child(6) { transition-delay: 0.3s; }
.services-list-grid > *:nth-child(7) { transition-delay: 0.35s; }
.services-list-grid > *:nth-child(8) { transition-delay: 0.40s; }
.services-list-grid > *:nth-child(9) { transition-delay: 0.45s; }
.services-list-grid > *:nth-child(10) { transition-delay: 0.50s; }
.services-list-grid > *:nth-child(11) { transition-delay: 0.55s; }

