/* =========================================================
   ICS Website - main.css
   Common CSS for all pages
   ========================================================= */

:root {
  --primary: #214cff;
  --primary-dark: #163ef1;
  --text: #0e1533;
  --muted: #4c5675;
  --line: #e7ebf5;
  --soft: #f5f7ff;
  --shadow: 0 14px 40px rgba(15, 38, 95, 0.08);
  --shadow-strong: 0 24px 54px rgba(7, 20, 47, 0.16);
  --container: 1236px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.page {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 10% -5%, rgba(33, 76, 255, 0.08), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(33, 76, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f3f6fb 44%, #f4f7fc 100%);
}

/* Header */
.navbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
 
 
}
.navbar{
    transition: all .35s ease;
}

.navbar.nav-fixed{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 30px;
    z-index: 9999;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    background: rgba(8,39,143,.88);

    box-shadow:
      0 10px 30px rgba(0,0,0,.12);

    animation: navSlideDown .35s ease;
}

body.nav-padding{
    padding-top: 70px;
}

@keyframes navSlideDown{
    from{
        opacity:0;
        transform:translateY(-100%);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* Navigation Hover Glow */
.navlinks a{
    position: relative;
    transition: all 0.3s ease;
}

.navlinks a:hover{
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(255,255,255,0.8),
        0 0 18px rgba(84,176,255,0.8);
}

.navlinks a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.navlinks a:hover::after,
.navlinks a.active::after{
    width: 100%;
}


.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: url("../images/logo.png") center/contain no-repeat;
  box-shadow: none;
}

.brand-text {
  line-height: 1.02;
}

.brand-text b,
.brand-text span,
.navlinks {
  color: #ffffff;
}

.brand-text b {
  display: block;
  font-size: 16px;
}

.brand-text span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
}

.navlinks a.active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(180deg, #2754ff 0%, #163ef1 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(33, 76, 255, 0.26);
}

.btn.secondary {
  border: 2px solid #c6d3ff;
  color: #2442d7;
  background: #ffffff;
}

.btn.small {
  height: 50px;
  padding: 0 26px;
  border-radius: 10px;
}

.nav-actions .btn.primary.small {
  color: #ffffff;
  background: linear-gradient(180deg, #2f5cff 0%, #133ce9 100%);
  box-shadow: 0 14px 30px rgba(0, 20, 100, 0.22);
}

/* Generic Sections */
.section {
  padding: 34px 0;
}

.padding-bottom {
  padding-bottom: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 8px 0 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 900;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(23, 40, 82, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(15, 38, 95, 0.12);
}

.mini {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #dee4fa;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 25px;
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.link {
  color: #2546ed;
  font-size: 14px;
  font-weight: 900;
  display: inline-block;
  margin-top: 14px;
}

.note-text {
  color: #5f6986;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

/* Footer */
footer {
  padding: 34px 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #081022 0%, #030b18 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 0.7fr);
  gap: 36px;
}

.footer-title {
  margin: 0 0 14px;
  color: #c1d3ed;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.footer-copy p {
  max-width: 420px;
  margin: 0 0 22px;
  color: #b4c0e2;
  font-size: 12px;
  line-height: 1.6;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

footer h4 {
  margin: 8px 0 14px;
  font-size: 18px;
}

footer .btn {
  height: auto;
  padding: 10px 12px;
  font-size: 10px;
}

footer a,
footer li {
  color: #c4ccec;
  font-size: 12px;
  line-height: 2;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(140, 159, 222, 0.16);
  color: #aab4d9;
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
}

/* Reveal Animations */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes icsFadeUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icsNodesDrift {
  from { background-position: 0 0, 36px 42px; }
  to { background-position: 144px 144px, 180px 186px; }
}

/* Common Responsive */
@media (max-width: 980px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .navbar {
    position: relative;
    padding: 0 14px;
  }

  .navlinks {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Common Inner Page Hero Visual */

.page-title-grid{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:60px;
  padding-top:76px;
}

.page-title-grid .page-title-wrap{
  padding-top:0;
}

.hero-visual-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.hero-visual-card{
  min-height:140px;
  border-radius:24px;
  padding:24px;
  display:grid;
  align-content:center;
  gap:14px;
 
  border:1px solid rgba(255,255,255,.24);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 22px 52px rgba(0,15,80,.18);
  color:#fff;
}

.hero-visual-card i{
  font-size:34px;
}

.hero-visual-card span{
  font-size:17px;
  font-weight:900;
  line-height:1.3;
}

@media (max-width:980px){
  .page-title-grid{
    grid-template-columns:1fr;
    gap:32px;
  }

  .hero-visual-grid{
    display:none;
  }
}
@media (max-width: 680px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
