/* ==========================================================
   Core Tech Solutions — brand colours taken from the logo
   ========================================================== */
:root {
  --navy: #392d5f;        /* dark purple of the logo mark */
  --navy-dark: #251d40;
  --blue: #0094fe;        /* bright blue of the logo mark */
  --blue-text: #036ebe;   /* wordmark blue */
  --blue-soft: #e8f4ff;
  --ink: #1f2133;
  --muted: #5c6178;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --border: #e3e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(57, 45, 95, 0.10);
  --shadow-lg: 0 20px 50px rgba(57, 45, 95, 0.18);
  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Poppins", sans-serif; line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: var(--blue-text); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2, .about-content h2, .contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft);
  padding: 6px 14px; border-radius: 50px; margin-bottom: 14px;
}
.eyebrow-light { background: rgba(255,255,255,.12); color: #8fd0ff; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .95rem;
  padding: 13px 28px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(0,148,254,.3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(0,148,254,.4); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-block { display: block; width: 100%; }

/* Top bar */
.topbar { background: var(--navy-dark); color: #cfd3e6; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.topbar a { color: #cfd3e6; margin-right: 20px; }
.topbar a:hover { color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--blue-text); line-height: 1.1; }
.brand-tag { font-size: .7rem; color: var(--ink); letter-spacing: .02em; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { font-family: "Poppins", sans-serif; font-weight: 500; font-size: .95rem; color: var(--navy); position: relative; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--blue); transition: width .25s; }
.nav-menu a:not(.btn):hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%); }
.hero-shapes .pill { position: absolute; border-radius: 999px; opacity: .08; transform: rotate(-42deg); }
.pill-1 { width: 420px; height: 120px; background: var(--navy); top: 40px; left: -120px; }
.pill-2 { width: 360px; height: 110px; background: var(--blue); bottom: 40px; right: -80px; transform: rotate(42deg) !important; }
.pill-3 { width: 200px; height: 70px; background: var(--blue); top: 60%; left: 40%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; color: var(--navy); font-weight: 500; font-size: .95rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-card { position: relative; width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.hero-card img { width: 62%; animation: float 5s ease-in-out infinite; }
.hero-badge { position: absolute; background: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); border-left: 4px solid var(--blue); }
.hero-badge strong { font-family: "Poppins", sans-serif; color: var(--navy); font-size: .95rem; }
.badge-1 { top: 8%; left: -6%; }
.badge-2 { bottom: 14%; right: -8%; border-left-color: var(--navy); }
.badge-3 { bottom: -2%; left: 10%; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Stats */
.stats { background: var(--gradient); color: #fff; padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num, .stat-plus { font-family: "Poppins", sans-serif; font-size: 2.6rem; font-weight: 700; }
.stat p { margin: 0; opacity: .9; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { display: grid; gap: 22px; }
.about-box { background: var(--navy); color: #e6e3f2; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); border-top-right-radius: 60px; }
.about-box h3 { color: #fff; }
.about-box-alt { background: var(--blue); color: #eaf6ff; margin-left: 40px; border-top-right-radius: var(--radius); border-bottom-left-radius: 60px; }
.about-box p { margin: 0; }
.about-content p { color: var(--muted); }
.checklist { margin: 20px 0 30px; display: grid; gap: 10px; }
.checklist li { padding-left: 32px; position: relative; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* Service cards */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--border); transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--gradient); transition: width .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Cloud services */
.cloud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cloud-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: transform .3s, box-shadow .3s; }
.cloud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cloud-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cloud-head h3 { margin: 0; font-size: 1.15rem; }
.cloud-badge { flex-shrink: 0; min-width: 62px; height: 46px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: .95rem; color: #fff; }
.cloud-aws { background: #232f3e; color: #ff9900; }
.cloud-azure { background: #0078d4; }
.cloud-gcp { background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%); }
.cloud-card ul { display: grid; gap: 10px; }
.cloud-card li { padding-left: 26px; position: relative; color: var(--muted); }
.cloud-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.cloud-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.cap { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--blue); }
.cap:nth-child(even) { border-left-color: var(--navy); }
.cap > span { font-size: 1.6rem; }
.cap h4 { margin: 8px 0 6px; font-size: 1.02rem; }
.cap p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 30px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--navy); color: #e6e3f2; border-color: var(--navy); box-shadow: var(--shadow-lg); }
.price-card.featured h3 { color: #fff; }
.price-card.featured .price-sub { color: #8fd0ff; }
.price-sub { color: var(--blue); font-weight: 500; }
.price-card ul { margin: 10px 0 28px; display: grid; gap: 10px; flex: 1; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.ribbon { position: absolute; top: 18px; right: 18px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; }

/* Why */
.why { background: var(--navy-dark); color: #cfd3e6; }
.why h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.why-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: center; }
.why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; transition: background .3s; }
.why-item:hover { background: rgba(0,148,254,.15); }
.why-item span { font-family: "Poppins", sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--blue); }
.why-item h4 { color: #fff; margin-top: 6px; }
.why-item p { margin: 0; font-size: .93rem; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-alt); font-size: 1.6rem; transition: background .3s, color .3s, transform .3s; }
.industry span { font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 500; color: var(--navy); }
.industry:hover { background: var(--gradient); transform: translateY(-4px); }
.industry:hover span { color: #fff; }

/* Testimonials */
.testimonial-slider { max-width: 780px; margin: 0 auto; text-align: center; position: relative; min-height: 240px; }
.testimonial { display: none; background: #fff; padding: 44px 40px 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.testimonial.active { display: block; animation: fade .5s ease; }
.testimonial p { font-size: 1.12rem; font-style: italic; color: var(--ink); }
.t-author strong { display: block; color: var(--navy); font-family: "Poppins", sans-serif; }
.t-author span { color: var(--muted); font-size: .9rem; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.t-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #c9d3e3; cursor: pointer; padding: 0; transition: .3s; }
.t-dots button.active { background: var(--blue); width: 30px; border-radius: 6px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* CTA */
.cta { background: var(--gradient); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; }
.cta p { margin: 0; opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-grid > * { min-width: 0; }
.contact-info > p { color: var(--muted); }
.info-item { display: flex; gap: 16px; margin-top: 22px; }
.info-item > span { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.3rem; }
.info-item strong { color: var(--navy); font-family: "Poppins", sans-serif; }
.info-item p { margin: 0; color: var(--muted); }
.contact-form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; gap: 18px; border-top: 5px solid var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,148,254,.15); background: #fff; }
.contact-form .invalid { border-color: #e04848; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #1a9a5a; }
.form-status.err { color: #e04848; }

/* Footer */
.footer { background: var(--navy-dark); color: #b5b9cf; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h3, .footer h4 { color: #fff; }
.footer h4 { position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--blue); border-radius: 2px; }
.footer-mark { width: 64px; margin-bottom: 12px; background: #fff; border-radius: 12px; padding: 6px; }
.footer-tag { color: #8fd0ff; font-weight: 500; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: #b5b9cf; transition: color .2s; }
.footer a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: .9rem; }

/* Floating buttons */
.whatsapp { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 90; }
.back-to-top { position: fixed; bottom: 92px; right: 30px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card img { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-menu.open { max-height: 480px; }
  .nav-menu a:not(.btn) { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin: 14px 20px; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { width: min(320px, 80%); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .cloud-grid, .cloud-capabilities { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .topbar-note { display: none; }
  .brand-tag { display: none; }
  .cards-grid, .industry-grid, .why-items, .form-row, .footer-grid, .cloud-grid, .cloud-capabilities { grid-template-columns: 1fr; }
  .about-box-alt { margin-left: 0; }
  .hero-badge { font-size: .7rem; padding: 8px 12px; }
  .badge-1 { left: -4%; } .badge-2 { right: -4%; }
  .contact-form { padding: 24px; }
}
