:root {
  --primary-color: #4472C4; /* Brand blue */
  --secondary-color: #002060; /* Brand dark blue */
  --accent-color: #ED7D31; /* Brand orange */
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--accent-color);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 60px;
  width: auto;
  display: block;
}

.logo-text {
  height: 40px;
  width: auto;
  display: block;
  margin-left: 5px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

nav ul li a:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  height: calc(100vh - 90px); /* Subtract header height */
  max-height: 800px;
  min-height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/banner_page1_trans_1337X680.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 90px; /* Match header height */
  position: relative;
  overflow: hidden;
}

/* Page Banner */
.page-banner {
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 80px;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "simple image agile"
    ". enabling .";
  gap: 0;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

#simple-card {
  position: relative;
  top: -60px;
  left: -30px;
  margin-right: 1rem;
}

.about-card[style*="grid-area: agile"] {
  margin-top: -1rem;
  margin-left: 1rem;
  transform: translateX(10%);
}

.about-card[style*="grid-area: enabling"] {
  margin-top: 0;
  margin-bottom: 2rem;
  transform: translateX(-15%);
}

.about-card {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed);
  position: relative;
  z-index: 2;
  margin: 0 1rem;
}

/* Removed visual connectors */

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-card-content {
  padding: 1.5rem;
}

.about-card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.about-image {
  text-align: center;
  padding: 0;
  grid-area: image;
  position: relative;
  z-index: 1;
  margin: -1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 130%;
  height: auto;
  width: 130%;
  max-height: 520px;
  object-fit: contain;
  transform: translateX(-5%);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 3rem 0;
}

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

.footer-section h3 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-on-scroll {
  /* Always visible by default */
  opacity: 1 !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
  opacity: 1 !important;
  transform: none !important;
}

/* Reset all transform effects to ensure text is visible */
.fade-up, .fade-down, .fade-left, .fade-right, .scale-up {
  transform: none !important;
}

/* Special overrides for hero section */
.hero h1, 
.hero-content h1 {
  color: var(--primary-color) !important; /* Brand blue #4472C4 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  opacity: 1;
  visibility: visible;
}

.hero p, 
.hero-content p {
  color: var(--accent-color) !important; /* Brand orange #ED7D31 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px;
  opacity: 1;
  visibility: visible;
}

/* Gradual fade-in effect */
.fade-in {
  display: inline-block;
  opacity: 0;
}

.fade-in.primary {
  animation: fadeIn 1s ease-in forwards;
}

.fade-in.secondary {
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 1s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.content-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.content-card.full-width {
  grid-column: 1 / -1;
  width: 100%;
  background-color: rgba(68, 114, 196, 0.05); /* Light blue background */
  border-left: 4px solid var(--primary-color);
}

.content-card:hover {
  transform: translateY(-10px);
}

.content-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #666;
}

/* Responsive */
@media (max-width: 992px) {
  /* About section responsive layout */
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "image"
      "simple"
      "agile"
      "enabling";
  }
  
  /* Hide connectors on smaller screens */
  .about-card[style*="grid-area: simple"]::after,
  .about-card[style*="grid-area: agile"]::after,
  .about-card[style*="grid-area: enabling"]::after {
    display: none;
  }
  
  /* Reset positioning for cards on smaller screens */
  #simple-card,
  .about-card[style*="grid-area: agile"],
  .about-card[style*="grid-area: enabling"] {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 1rem 0;
  }
  
  .about-image img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-arrow span {
  display: block;
  width: 25px;
  height: 25px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  margin: -8px 0;
  animation: animate 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes animate {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}
