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

:root {
  --primary-color: #2563eb; /* Modern Blue */
  --primary-dark: #1e40af;
  --secondary-color: #3b82f6;
  --accent-color: #ef4444;
  --text-color: #1e293b; /* Slate 800 */
  --text-light: #64748b; /* Slate 500 */
  --light-gray: #f8fafc; /* Slate 50 */
  --white: #ffffff;
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.7;
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
  color: var(--white);
}

.btn:hover::before {
  opacity: 1;
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-color);
}

.nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.8) 0%,
      rgba(30, 58, 138, 0.7) 100%
    ),
    url("https://images.unsplash.com/photo-1474181487882-5abf3f0ba6c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
      no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 4rem;
  margin-bottom: 25px;
  font-weight: 800;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.6rem;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-content .btn {
  animation: fadeInUp 1s ease-out 0.6s backwards;
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* About Section */
.about {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.stat-item {
  background: var(--light-gray);
  padding: 25px;
  text-align: center;
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.stat-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite 1s;
}

/* Business Section */
.business {
  background-color: var(--light-gray);
  position: relative;
  z-index: 1;
}

.business::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: -1;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.business-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.business-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

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

.business-card .icon {
  font-size: 3.5rem;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

.business-card:hover .icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotateY(180deg);
}

.business-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 700;
}

.business-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: var(--white);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 15px;
  color: #a4b0be;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-col ul li i {
  margin-right: 12px;
  color: var(--secondary-color);
  width: 20px;
  text-align: center;
}

.footer-col ul li a {
  color: #a4b0be;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #7f8c8d;
  font-size: 0.95rem;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    padding: 0 15px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-list.active {
    left: 0;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

/* =========================================
   New Styles for Rich Content Pages
   ========================================= */

/* Alternating Text-Image Rows */
.rich-content-section {
  padding: 80px 0;
}

.text-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.text-image-row.reverse {
  direction: rtl; /* Simple way to swap, but need to reset text direction */
}

.text-image-row.reverse > * {
  direction: ltr;
}

.text-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.text-content p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

.text-content ul {
  margin-top: 20px;
}

.text-content ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.text-content ul li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.image-content img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.image-content img:hover {
  transform: scale(1.02);
}

/* Grid Layouts for Scenarios/Cases */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.scenario-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.scenario-image {
  height: 200px;
  overflow: hidden;
}

.scenario-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scenario-card:hover .scenario-image img {
  transform: scale(1.1);
}

.scenario-content {
  padding: 25px;
}

.scenario-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.scenario-content p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Value Stats/Highlights */
.value-section {
  background: var(--light-gray);
  padding: 80px 0;
  text-align: center;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.value-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-item h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.value-item p {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .text-image-row,
  .text-image-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
}
