:root{
  --blue-900: #05258f;
  --blue-700: #0b4ff5;
  --blue-500: #42a5ff;
  --cyan: #7de3ff;
  --bg: #eef2ff;
  --white: #ffffff;
  --muted: #6f91b8;
  --radius: 14px;
}

/* Basic reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html {scroll-behavior: smooth;}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,var(--bg) 0%, #f4f7ff 100%);
  color: #033b73;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:16px;
}

/* Container */
.container{
  width:92%;
  max-width:1180px;
  margin:0 auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(7,29,73,0.04);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}
.logo{display:flex;align-items:center;gap:10px}
.logo svg{border-radius:6px}
.brand strong{display:block;font-family:'Playfair Display',serif;font-size:18px;color:var(--blue-900)}
.brand small{font-size:11px;color:var(--muted);display:block;line-height:1}

/* Navigation */
.nav{display:flex;gap:16px;align-items:center}
.nav a{color:var(--blue-900);text-decoration:none;font-weight:600}
.btn-cta{background:var(--blue-700);color:white;padding:8px 12px;border-radius:8px;text-decoration:none}
.nav-toggle{display:none;background:none;border:0;font-size:20px;padding:6px}

/* HERO */
.hero{
  background: linear-gradient(180deg,var(--blue-700), #0a3fe6);
  color:var(--white);
  padding:56px 0;
  position:relative;
  overflow:hidden;
}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:center}
.hero-left{padding:12px}
.headline{
  font-family:'Playfair Display', serif;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height:1.02;
  margin-bottom:12px;
  max-width:680px;
}
.headline .accent{
  color:var(--cyan);
  background:linear-gradient(90deg, rgba(125,211,252,0.1), rgba(255,255,255,0.04));
  padding:2px 6px;border-radius:6px;
}
.lead{opacity:0.95;color:rgba(255,255,255,0.95);max-width:560px;margin-bottom:18px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:12px 16px;border-radius:10px;text-decoration:none;font-weight:700}
.btn.primary{background:var(--white);color:var(--blue-700);}
.btn.ghost{border:2px solid rgba(255,255,255,0.14);color:var(--white);background:transparent}

.hero-right{display:flex;justify-content:center;align-items:center}
.device{width:100%;max-width:380px;transform-origin:center;filter:drop-shadow(0 20px 40px rgba(2,6,23,0.28));border-radius:12px}

/* Decorative dots and shapes */
.hero-decor .dot, .hero-decor .dash{
  position:absolute;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,0.08);
}
.hero-decor .dash{width:48px;height:8px;border-radius:6px;background:rgba(255,255,255,0.05)}

/* Sections */
.section{padding:56px 0}
.section.pale{background:linear-gradient(180deg,#eef2ff 0%, #f8faff 100%)}
.section.light{background:transparent}
.section-title{
  font-family:'Playfair Display',serif;font-size:32px;color:var(--blue-900);margin-bottom:12px;
}
.center{text-align:center}
.text-muted{color:var(--muted);max-width:950px}

/* Who grid */
.who-grid{display:grid;grid-template-columns:220px 1fr;gap:32px;align-items:center}
.network{width:220px;height:220px}

/* Services */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:22px}
.service-card{
  background:var(--white);padding:20px;border-radius:14px;box-shadow:0 8px 30px rgba(4,18,68,0.06);
  border:1px solid rgba(11,79,245,0.06);text-align:center;transition:transform .36s cubic-bezier(.17,.67,.34,1), box-shadow .36s;
}
.service-thumb{width:100%;height:120px;border-radius:10px;object-fit:cover;margin-bottom:12px}
.placeholder-code{background:linear-gradient(90deg,#031b5a,#082a7a);height:90px}
.placeholder-desk{background:linear-gradient(90deg,#0b2f54,#0b3f7a);height:90px}
.placeholder-console{background:linear-gradient(90deg,#052a3a,#0b3f3a);height:90px}
.service-card h3{color:var(--blue-900);margin:8px 0;font-size:18px}
.service-desc{color:var(--muted);font-size:14px}
.learn{display:inline-block;margin-top:12px;color:var(--blue-700);font-weight:700}

/* Why grid */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:24px}
.why-card{background:linear-gradient(180deg,#fff,#fff);border-radius:12px;padding:18px;text-align:center;border:1px solid rgba(11,79,245,0.04)}
.icon{font-size:32px;margin-bottom:8px}
.small{color:var(--muted);font-size:13px}

/* CTA blue block */
.cta-blue{background:linear-gradient(180deg,var(--blue-700), #062a9a);color:var(--white);padding:48px 0;margin-top:14px}
.cta-grid{display:grid;grid-template-columns:120px 1fr;gap:22px;align-items:center}
.cta-copy h3{font-family:'Playfair Display',serif;font-size:22px;margin-bottom:6px}
.cta-visual{width:120px;height:120px}

/* Testimonials */
.testimonials{display:flex;align-items:center;gap:12px;justify-content:center;margin-top:22px}
.t-window{width:70%;overflow:hidden;border-radius:12px;border:1px solid rgba(11,79,245,0.06)}
.t-track{display:flex;transition:transform .6s cubic-bezier(.2,.9,.3,1)}
.testimonial{min-width:100%;padding:22px;background:var(--white);color:var(--blue-900)}
.quote{font-weight:600;margin-bottom:10px}
.testimonial cite{display:block;color:var(--muted);font-size:13px}

/* Footer */
.site-footer{background:linear-gradient(180deg,#fff,#f6fbff);padding:44px 0;border-top:1px solid rgba(11,79,245,0.03)}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:flex-start}
.footer-left h3{font-family:'Playfair Display',serif;color:var(--blue-900);margin-bottom:6px}
.social-dot{display:inline-block;width:34px;height:34px;border-radius:8px;background:var(--blue-700);color:white;text-decoration:none;text-align:center;line-height:34px;margin-right:8px}

/* copyright */
.copyright{padding:18px 0;text-align:center;color:var(--muted);font-size:13px}

/* Hover & motion helpers */
.hover-raise:hover{transform:translateY(-10px);box-shadow:0 18px 40px rgba(2,6,23,0.12)}
.floating{animation:float 4s ease-in-out infinite}
.floating-slow{animation:float 6s ease-in-out infinite}
.floating-slower{animation:float 8s ease-in-out infinite}
@keyframes float{
  0%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-10px) rotate(3deg)}
  100%{transform:translateY(0) rotate(0deg)}
}

/* reveal-on-scroll helper (will be toggled by JS) */
.revealed{opacity:1 !important;transform:translateY(0) !important}

/* small screens */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr 320px}
  .nav{display:none}
  .nav-toggle{display:block}
  .who-grid{grid-template-columns:1fr}
  .services-grid{grid-template-columns:1fr 1fr}
  .why-grid{grid-template-columns:1fr 1fr}
  .t-window{width:84%}
  .footer-grid{grid-template-columns:1fr}
  .device{max-width:320px}
}

@media (max-width:640px){
  .hero-grid{grid-template-columns:1fr;gap:18px;padding:8px}
  .headline{font-size:28px}
  .services-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .t-window{width:100%}
  .btn.primary{padding:10px 12px}
}
/*Logo image resizing*/
#logoimg{
    height: 40px;
    width: 215px;
}
.footer {
  background: linear-gradient(180deg, #0d1b2a, #0a192f);
  color: #e0f2fe;
  padding: 60px 20px 20px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h2, .footer h3 {
  color: #60a5fa;
  margin-bottom: 12px;
  position: relative;
}

.footer h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #3b82f6;
  margin-top: 6px;
  border-radius: 2px;
  transition: width .3s;
}
.footer h3:hover::after { width: 60px; }

.footer p, .footer li, .footer a {
  color: #e0f2fe;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links ul, .footer-services ul {
  list-style: none;
  padding: 0;
}
.footer-links a:hover {
  color: #93c5fd;
  margin-left: 4px;
  transition: all .3s ease;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 14px;
}
.social-icons a {
  color: #93c5fd;
  font-size: 20px;
  transition: transform .3s, color .3s;
}
.social-icons a:hover {
  color: #38bdf8;
  transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* Floating animation effect */
.footer::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%);
  transform: translateX(-50%);
  animation: floaty 8s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(40px); }
}

/* Services Grid Base */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.service-card {
  background: var(--white);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(4,18,68,0.06);
  border: 1px solid rgba(11,79,245,0.06);
  text-align: center;
  transition: transform .36s cubic-bezier(.17,.67,.34,1), box-shadow .36s;
}

.service-card img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}

.service-card h3 {
  color: var(--blue-900);
  margin: 8px 0;
  font-size: 18px;
}

.service-desc {
  color: var(--muted);
  font-size: 14px;
}

.learn {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue-700);
  font-weight: 700;
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr 1fr; /* Two columns for tablets */
    gap: 18px;
  }

  .service-card img {
    max-height: 100px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr; /* Single column for mobiles */
    gap: 16px;
  }

  .service-card {
    padding: 16px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-desc {
    font-size: 13px;
  }

  .learn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ===== THANK YOU POPUP STYLES ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease-out;
}

.popup-content h2 {
  color: #16a34a;
  margin-top: 15px;
  font-size: 1.8rem;
}

.popup-content p {
  color: #475569;
  margin: 10px 0 20px;
}

.popup-content button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content button:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* Checkmark Animation */
.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-block;
  stroke-width: 2;
  stroke: #16a34a;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #16a34a;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark svg {
  width: 80px;
  height: 80px;
}
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #16a34a;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Animations */
@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 40px #16a34a; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
