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

/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #ff8636;
    --primary-dark: #0044aa;
    --primary-light: #00bfff;
    --accent: #06b6d4;
    --secondary: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-img: #f4f4f4;
    --bg-subtle: #f1f5f9;
    --border: #e2e8f0;
    --primary-dark-faded: #0044aa83; 
    --gradient: linear-gradient(135deg, #0044aa 0%, #00bfff 100%);
    --gradient-warm: linear-gradient(135deg, #ff8636 0%, #fff132 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.06); }

.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 38px; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text); text-decoration: none; font-weight: 500;
    font-size: 0.9rem; transition: color 0.2s; letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }

.nav-cta {
    background: var(--primary-dark); color: white !important;
    padding: 10px 22px; border-radius: 8px; font-weight: 600; transition: all 0.2s;
}
.nav-cta:hover {
    background: var(--primary-light) !important; color: white !important;
    transform: translateY(-1px);
}

.nav-links a.active { 
    color: var(--primary); 
}

.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.5rem; color: var(--secondary); cursor: pointer;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--secondary);
    padding: 48px 32px;
}
.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
}


@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stat-number {
        font-size: 2rem;
    }
}


/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 20px 32px;
}

.footer-grid{
  width: fit-content;            /* shrink container to its content */
  margin: 0 auto 20px;           /* center it */
  display: grid;

  /* columns sized to their content instead of stretching */
  grid-template-columns: max-content max-content max-content max-content;

  gap: 48px;
  align-items: start;
}

.footer-brand{
  max-width: 320px;              /* adjust (280–360px works well) */
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; }
.footer-brand img { height: 32px; filter: brightness(0) invert(1); }

.footer-col h4 {
    color: white; font-size: 0.9rem; font-weight: 700;
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom {
    max-width: 1280px; margin: 0 auto; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.5); font-size: 1.1rem; transition: color 0.2s; }
.footer-social a:hover { color: white; }

/* Center overall footer content */
footer .footer-grid{
  justify-items: center;   /* centers each column */
  text-align: center;
}

footer .footer-brand{
  text-align: center;
}

footer .footer-brand img{
  margin: 0 auto 12px;     /* centers logo */
}

/* ===== ANIMATION ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }


.research-innovation-section { padding: 5rem 1.5rem; background: linear-gradient(180deg, rgba(15,23,42,0.02), rgba(15,23,42,0)); }
.research-innovation-section .container { max-width: 1200px; margin: 0 auto; }
.research-innovation-section .section-badge { display: inline-block; margin-bottom: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0f766e; }
.research-innovation-section .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.research-innovation-section .service-card { background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 18px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(15,23,42,0.06); }
.research-innovation-section .service-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.research-innovation-section .service-card a { color: inherit; text-decoration: none; }
.research-innovation-section .service-card a:hover { text-decoration: underline; }


/* ===== HERO ANIMATED GRADIENT ===== */
.hero{
  position:relative;
  overflow:hidden;
  background: radial-gradient(circle at 20% 20%, rgba(0,191,255,0.12), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(0,68,170,0.12), transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(255,134,54,0.10), transparent 40%);
}

.hero::before{
  content:"";
  position:absolute;
  inset:-20%;
  background: linear-gradient(120deg,#0044aa,#00bfff,#ff8636,#0044aa);
  background-size:300% 300%;
  opacity:0.06;
  animation:heroGradientMove 18s ease infinite;
  z-index:0;
}

.hero > *{
  position:relative;
  z-index:1;
}

@keyframes heroGradientMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* ===== MOBILE HERO TITLE TUNING ===== */
@media (max-width:768px){
  .hero h1{
    font-size:2.4rem;
    line-height:1.2;
  }
}

@media (max-width:480px){
  .hero h1{
    font-size:2rem;
  }
}
