/* ============= Typing Animation Styles (Hero Only) ============= */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.typing-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: bold;
  animation: blink 500ms infinite;
  margin-left: 2px;
}

.typing-in-progress {
  position: relative;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.typing-completed {
  animation: none;
}

/* Hero overlay typing animation styles */
.hero-overlay .typing-animated {
  min-height: 1.2em;
  display: inline-block;
  white-space: pre-wrap;
}

/* Responsive adjustments for hero typing animation */
@media (max-width: 768px) {
  .typing-cursor {
    margin-left: 1px;
  }
  
  .hero-overlay .typing-animated {
    min-height: 1.1em;
  }
}

/* ============= Core Variables & Reset ============= */
:root{
  --bg-primary:#f9f9f9;
  --bg-secondary:#eeeeee;
  --text-primary:#1a1a1a;
  --accent:#2563eb; /* blue for progress/accents */
  --shadow:0 8px 24px rgba(0,0,0,.12);
  --radius:12px;
  --font-family: 'IBM Plex Sans', sans-serif;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  width:100%;
  color:var(--text-primary);
  line-height:1.6;
  /*font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;*/
  font-family: var(--font-family);
  background:#fff;
  overflow-x:hidden;
}
img{display:block; max-width:100%; height:auto}

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

h1,h2,h3{margin:0 0 .5rem}
h2{font-size:2.25rem}
p{margin:0 0 1rem}

/* ============= Header ============= */
header{
  position:absolute; inset:0 auto auto 0; width:100%;
  padding:20px; z-index:1000; background:transparent;
}
.nav-container{display:flex; align-items:center; justify-content:space-between; padding:0 20px}
.logo img{height:70px; margin-top:10px}

/* ============= Hero ============= */
#hero{position:relative; width:100%; height:100vh; overflow:hidden}
.hero-video{
  position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; z-index:1; pointer-events:none;
}
.hero-overlay{
  position:absolute; top:0; left:0; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; color:#fff; background:linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.35));
  padding:0 20px; z-index:2; pointer-events:auto; min-height:100vh;
}
.hero-overlay h1{font-size:3rem; font-weight:600; margin-bottom:1rem; text-shadow:2px 2px 4px rgba(0,0,0,.5)}
.hero-overlay p{font-size:1.125rem; margin-bottom:1.5rem; text-shadow:1px 1px 2px rgba(0,0,0,.5)}
.hero-button{
  appearance:none; border:0; border-radius:8px; padding:12px 24px; font-weight:700; cursor:pointer;
  background:#fff; color:#000; transition:transform .15s ease, box-shadow .15s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
  text-decoration:none;
}
.hero-button:hover{transform:translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.18)}

/* ============= Section Spacing ============= */
section{padding:72px 0}
#solutions{background:#fff}
#platform-intro{background:var(--bg-secondary)}
#focus-areas{background:#fff; padding-bottom:40px}
#our-tools{background:#fff; padding-top:40px}
#insights{background:#111; color:#fff}
#about-contact{background:#fff}

/* ============= Shared Carousel Bits ============= */
.carousel{
  max-width:1100px; margin:24px auto 0; border-radius:16px; overflow:hidden; box-shadow:var(--shadow); background:#111;
}
.carousel .slide{
  position:relative; width:100%;
}
.slide img{
  width:100%; aspect-ratio:16/9; object-fit:cover;
}
.slide-caption{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:min(92%, 760px);
  background:rgba(0,0,0,.45);
  color:#fff; padding:16px 20px; border-radius:10px; text-align:center; line-height:1.4;
  backdrop-filter:saturate(1.2) blur(2px);
}
.slide-caption h3{font-size:1.5rem; margin:0 0 .25rem}
.slide-caption p{margin:0; font-size:1rem}

/* ============= Solutions Carousel (no external libs) ============= */
.solutions-carousel .viewport{position:relative; overflow:hidden}
.solutions-carousel .track{
  display:flex; transition:transform .55s ease; will-change:transform;
}
.solutions-carousel .slide{flex:0 0 100%}
.solutions-nav{
  position:absolute; inset:0; pointer-events:none;
}
.solutions-nav button{
  position:absolute; top:50%; transform:translateY(-50%);
  pointer-events:auto; border:0; background:rgba(255,255,255,.75);
  width:44px; height:44px; border-radius:999px; cursor:pointer; font-size:18px; font-weight:700;
  display:grid; place-items:center;
}
.solutions-nav .prev{left:10px}
.solutions-nav .next{right:10px}

/* ============= Platform Intro ============= */
#platform-intro .intro-text{
  max-width:80%; margin:0 auto; font-size:2.2rem; text-align:center; color:var(--text-primary);
}
#platform-intro .highlight{
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 0 2px;
}

#platform-intro .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-radius: 1px;
  opacity: 0.7;
}

/* ============= Strategic Focus Areas ============= */
#focus-areas h2, #solutions h2, #our-tools h2, #insights h2, #about-contact h2{
  text-align:center; margin-bottom:.5rem
}
#focus-areas p, #solutions p{max-width:800px; margin:0 auto 1rem; text-align:center}

.focus-buttons{
  display:flex; gap:8px; margin:12px auto; width:fit-content;
}
.focus-btn{
  position:relative; flex:0 0 auto; border:0; border-radius:6px;
  padding:10px 16px; font-weight:700; background:#e5e5e5; cursor:pointer; white-space:nowrap; overflow:hidden;
}
.focus-btn.active{background:#e5e5e5}
.focus-btn .progress{
  position:absolute; left:0; bottom:0; height:3px; width:0%; background:var(--accent); z-index:2;
}

/* Focus carousel (custom) */
#focus-areas .carousel{background:#111}
#focus-areas .carousel-track{display:flex; transition:transform .6s ease; will-change:transform}
#focus-areas .focus-slide{flex:0 0 100%; position:relative}
#focus-areas .focus-slide img{width:100%; aspect-ratio:16/9; object-fit:cover}
#focus-areas{margin-bottom:20px} /* reduced gap to next section */

/* ============= Our Tools ============= */
.tools-grid{
  display:flex; flex-wrap:wrap; gap:20px; justify-content:center; margin-top:28px;
}
.tool-card{
  flex:1 1 320px; background:#f8f9fa; padding:32px; border-radius:10px; text-align:center;
  box-shadow:0 4px 10px rgba(0,0,0,.06);
}
.tool-login-link{
  display:inline-block; margin-top:16px; padding:8px 16px; background:var(--accent); color:#fff;
  text-decoration:none; border-radius:6px; font-weight:600; font-size:0.9rem;
  transition:background-color 0.3s ease, transform 0.2s ease;
}
.tool-login-link:hover{
  background:#1d4ed8; transform:translateY(-1px);
}

/* ============= Insights ============= */
.insights-scroll{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; padding:0 20px; margin-top:28px;
  justify-content:center; /* Center the cards */
  max-width:1320px; margin-left:auto; margin-right:auto; /* Center the container for 4 cards */
  /* Ensure proper centering even with scroll */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.insights-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.insight-card{
  flex:0 0 auto; width:300px; scroll-snap-align:center; background:#fff; color:var(--text-primary);
  padding:24px; border-radius:10px; box-shadow:0 4px 10px rgba(0,0,0,.1); text-decoration:none;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.insight-card:hover{
  transform:translateY(-4px); box-shadow:0 8px 25px rgba(0,0,0,.15);
}
.insight-card small{display:block; font-weight:700; text-transform:uppercase; color:#666}
.insight-card h3{margin:12px 0 8px 0; font-size:1.1rem; line-height:1.3}
.insight-card .arrows{opacity:0.6; transition:opacity 0.3s ease}
.insight-card:hover .arrows{opacity:1}

/* ============= About & Footer ============= */
#about-contact .grid-2{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;
  max-width:900px; margin:0 auto;
}
#about-contact .about-content{
  padding-right:20px;
}
#about-contact .contact-content{
  background:#f8f9fa; padding:32px; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,.08);
  text-align:center;
}
#about-contact .contact-info{
  margin-bottom:24px;
}
#about-contact .contact-item{
  margin-bottom:16px; padding:12px 0;
  border-bottom:1px solid #e9ecef;
}
#about-contact .contact-item:last-child{
  border-bottom:none;
}
#about-contact .contact-item strong{
  display:block; margin-bottom:4px; color:#666; font-size:0.9rem; text-transform:uppercase; letter-spacing:0.5px;
}
#about-contact .contact-item a{
  color:var(--text-primary); text-decoration:none; font-weight:500;
  transition:color 0.2s ease;
}
#about-contact .contact-item a:hover{
  color:var(--text-primary); text-decoration:underline;
}
footer{
  background:#000; color:#fff; text-align:center; padding:40px 20px; font-size:.95rem
}
footer a{color:#bbb; text-decoration:none}
footer a:hover{text-decoration:underline}

/* ============= Responsive tweaks ============= */
@media (max-width:640px){
  .hero-overlay h1{font-size:2.25rem}
  .slide-caption{padding:12px 14px}
  .slide-caption h3{font-size:1.25rem}
  .slide-caption p{font-size:.95rem}
  #about-contact .grid-2{
    grid-template-columns:1fr; gap:40px;
  }
  #about-contact .about-content{
    padding-right:0; text-align:center;
  }
  #about-contact .contact-content{
    padding:24px;
  }
}
