/* ==========================================================================\n+   Cugensoft — design system\n+   ========================================================================== */

:root {
  --navy-900: #0B2545;
  --navy-800: #10305E;
  --navy-700: #16406F;
  --blue-600: #1E6FD9;
  --blue-500: #2F80ED;
  --blue-50: #EAF2FE;

  /* Secondary accent palette — used sparingly (icons, badges) to add
     visual variety beyond the single blue accent, while staying flat
     and professional: no gradients, no neon, no glow. */
  --teal-600: #0F9D8A;
  --teal-50: #E6F7F5;
  --amber-600: #C9820A;
  --amber-50: #FDF3E1;
  --coral-600: #D9573B;
  --coral-50: #FCEAE6;
  --violet-600: #6D4FD1;
  --violet-50: #F0ECFC;

  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-300: #D0D5DD;
  --ink-100: #F2F4F7;

  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --surface-warm: #FFF9F2;
  --line-soft: rgba(16, 24, 40, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lift: 0 12px 24px rgba(11, 37, 69, 0.10);
  --shadow-color: 0 18px 42px rgba(11, 37, 69, 0.14);

  --container-max: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 42%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-navy { color: var(--navy-900) !important; }
.bg-navy { background-color: var(--navy-900) !important; }
.text-accent { color: var(--blue-600) !important; }
.bg-surface-muted { background-color: var(--surface-muted) !important; }

/* ---------- Layout helpers ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-sm { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 767.98px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-sm { padding-top: 48px; padding-bottom: 48px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.section-heading p { color: var(--ink-500); font-size: 1.05rem; max-width: 640px; }

/* ---------- Navbar ---------- */
.site-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-navbar.is-scrolled { box-shadow: 0 8px 28px rgba(11, 37, 69, 0.09); background: rgba(255, 255, 255, 0.98); }
.site-navbar .navbar-brand { font-weight: 800; color: var(--navy-900); font-size: 1.3rem; letter-spacing: -0.02em; }
.site-navbar .nav-link {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--blue-600); }
.btn-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: #fff;
  border: 1px solid var(--navy-900);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  box-shadow: 0 8px 18px rgba(30, 111, 217, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { background: linear-gradient(135deg, var(--blue-600), var(--teal-600)); border-color: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 111, 217, 0.24); }
.btn-cta, .btn-cta:hover, .btn-cta:focus { color: #fff !important; }
.btn-cta-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.55rem 1.3rem;
}
.btn-cta-outline:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 92% 12%, rgba(47, 128, 237, 0.14), transparent 28%), linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%); padding-top: 88px; padding-bottom: 96px; overflow: hidden; }
.hero h1 { max-width: 680px; font-size: clamp(2.4rem, 5vw, 4.35rem) !important; line-height: 1.08; }
.hero p { line-height: 1.8; }
.hero-visual {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--blue-600) 58%, var(--teal-600) 100%);
  border-radius: var(--radius-md);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-color);
  isolation: isolate;
  animation: float-visual 7s ease-in-out infinite;
}
.hero-visual::before, .hero-visual::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.hero-visual::before { width: 210px; height: 210px; right: -70px; top: -80px; background: rgba(255, 255, 255, 0.18); }
.hero-visual::after { width: 140px; height: 140px; left: -55px; bottom: -60px; background: rgba(255, 196, 106, 0.28); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}
.about-image-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-color); transform: rotate(1.5deg); }
.about-image-frame img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; transition: transform 0.5s ease; }
.about-image-frame:hover img { transform: scale(1.04); }
.about-home-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.cs-card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-top: 3px solid var(--blue-600);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.solutions-grid .col-lg-3:nth-of-type(4n+2) .cs-card { border-top-color: var(--teal-600); }
.solutions-grid .col-lg-3:nth-of-type(4n+3) .cs-card { border-top-color: var(--amber-600); }
.solutions-grid .col-lg-3:nth-of-type(4n+4) .cs-card { border-top-color: var(--coral-600); }
.cs-card:hover {
  box-shadow: var(--shadow-color);
  transform: translateY(-7px);
  border-color: var(--ink-300);
}
.cs-card .card-body { padding: 1.75rem; }
.service-card { overflow: hidden; }
.service-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-100); }
.service-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.45s ease; }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.cs-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
/* Cycle icon colors across a card grid so a row of 4 reads as a set of
   distinct offerings rather than one repeated blue square. */
.row .col-md-6:nth-of-type(4n+2) .cs-icon,
.row .col-lg-3:nth-of-type(4n+2) .cs-icon { background: var(--teal-50); color: var(--teal-600); }
.row .col-md-6:nth-of-type(4n+3) .cs-icon,
.row .col-lg-3:nth-of-type(4n+3) .cs-icon { background: var(--amber-50); color: var(--amber-600); }
.row .col-md-6:nth-of-type(4n+4) .cs-icon,
.row .col-lg-3:nth-of-type(4n+4) .cs-icon { background: var(--coral-50); color: var(--coral-600); }
.row .col-lg-4:nth-of-type(3n+2) .cs-icon { background: var(--violet-50); color: var(--violet-600); }
.row .col-lg-4:nth-of-type(3n+3) .cs-icon { background: var(--teal-50); color: var(--teal-600); }
.cs-card h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cs-card p { color: var(--ink-500); font-size: 0.94rem; margin-bottom: 0.9rem; }
.cs-card .learn-more { font-size: 0.9rem; font-weight: 600; color: var(--navy-900); text-decoration: none; }
.cs-card .learn-more:hover { color: var(--blue-600); }

.media-placeholder {
  background: var(--ink-100);
  border: 1px dashed var(--ink-300);
  color: var(--ink-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}
.media-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process steps ---------- */
.process-step {
  border-left: 2px solid var(--ink-100);
  padding-left: 1.5rem;
  position: relative;
}
.process-step::before {
  content: attr(data-step);
  position: absolute; left: -19px; top: 0;
  width: 36px; height: 36px;
  background: var(--navy-900); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.process-step:nth-of-type(4n+2)::before { background: var(--teal-600); }
.process-step:nth-of-type(4n+3)::before { background: var(--amber-600); }
.process-step:nth-of-type(4n+4)::before { background: var(--coral-600); }

/* ---------- Project carousel ---------- */
.project-carousel { padding: 0 56px; }
.project-slide {
  background: linear-gradient(105deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-color);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-slide:hover { box-shadow: 0 22px 48px rgba(11, 37, 69, 0.17); transform: translateY(-3px); }
.project-slide-media {
  background: var(--ink-100);
  min-height: 320px;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  font-size: 0.85rem;
  overflow: hidden;
}
.project-slide-media img { width: 100%; height: 100%; object-fit: cover; }
.project-slide-body {
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.project-slide-body h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next { width: 56px; opacity: 1; }
.project-carousel-arrow {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--ink-300);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.project-carousel-arrow:hover { background: var(--navy-900); color: #fff; }
.project-carousel .carousel-indicators { bottom: -48px; }
.project-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  background-color: var(--ink-300);
  border: none; opacity: 1;
}
.project-carousel .carousel-indicators .active { background-color: var(--navy-900); }
.project-carousel .carousel-indicators [data-bs-target] { transition: width 0.25s ease, background-color 0.25s ease; }
.project-carousel .carousel-indicators .active { width: 28px; border-radius: 8px; background: linear-gradient(90deg, var(--blue-600), var(--teal-600)); }
@media (max-width: 767.98px) {
  .project-carousel { padding: 0 8px; }
  .project-slide-media { min-height: 200px; }
  .project-slide-body { padding: 1.75rem 1.25rem; }
  .project-carousel .carousel-control-prev,
  .project-carousel .carousel-control-next { display: none; }
}

/* ---------- Team ---------- */
.team-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  background: var(--ink-100);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonial-card { border-left: 3px solid var(--blue-600); }
.stars { color: #F5A623; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.accordion-button:not(.collapsed) { color: var(--navy-900); background: var(--blue-50); }
.accordion-button:focus { box-shadow: none; border-color: var(--ink-300); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--navy-900); border-radius: var(--radius-md); }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.75); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); }
.footer-brand-logo { height: 38px; width: auto; background: #fff; padding: 4px 8px; border-radius: 6px; }
.site-footer h6 { color: #fff; font-size: 0.95rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }

/* ---------- Tech stack ---------- */
.tech-badge {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--ink-700);
  font-size: 0.9rem;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tech-badge:hover { transform: translateY(-4px); border-color: var(--blue-600); box-shadow: var(--shadow-sm); }

/* ---------- Utility ---------- */
.divider-sm { width: 48px; height: 3px; background: var(--blue-600); border-radius: 2px; }

/* ---------- Password visibility ---------- */
.password-toggle-wrap { position: relative; }
.password-toggle-wrap .form-control { padding-right: 4.25rem; }
.password-toggle { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue-600); font-size: .82rem; font-weight: 600; padding: .2rem; z-index: 2; }

/* ---------- Motion ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes float-visual { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
