/*--------------------------------------------------------------
# SOFTFORMATION — Modern 2026 Redesign
# Colors matched to logo palette:
#   #47C7F4  sky blue  (logo icon, top)
#   #179AD7  mid blue  (logo text)
#   #006EA6  deep blue (logo icon, bottom)
--------------------------------------------------------------*/

/* ============================================================
   1. DESIGN TOKENS — derived from logo colors only
   ============================================================ */
:root {
  --background-color: #ffffff;
  --default-color: #4a6275;
  --heading-color: #021929;
  --accent-color: #179AD7;         /* logo text blue — primary interactive */
  --accent-deep: #006EA6;          /* logo icon deep blue */
  --accent-light: #47C7F4;         /* logo icon sky blue */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* gradient helpers — all from logo colors */
  --grad-main: linear-gradient(135deg, #006EA6 0%, #179AD7 55%, #47C7F4 100%);
  --grad-hero-bg: linear-gradient(135deg, #021929 0%, #03304a 45%, #021f38 100%);

  --shadow-soft: 0 8px 32px rgba(2,25,41,0.10);
  --shadow-card: 0 4px 24px rgba(23,154,215,0.10);
}

:root {
  --nav-color: #4a6275;
  --nav-hover-color: #179AD7;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-hover-color: #006EA6;
}

.light-background {
  --background-color: #f0f8fd;    /* pale blue tint matching logo */
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #021929;
  --default-color: #8fb4cb;
  --heading-color: #e8f4fb;
  --accent-color: #47C7F4;
  --surface-color: #052e47;
  --contrast-color: #ffffff;
}

/* ============================================================
   2. GLOBAL TYPOGRAPHY & BASE
   ============================================================ */
body {
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-color);
}

/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */
.header {
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.scrolled .header {
  border-bottom: 1px solid rgba(23,154,215,0.12);
}

.scrolled .header::before {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header .logo img {
  transition: filter 0.3s;
}
.header .logo:hover img {
  filter: drop-shadow(0 0 8px rgba(23,154,215,0.45));
}

.navmenu a,
.navmenu a:focus {
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (min-width: 1200px) {
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }
}

/* ============================================================
   4. HERO — dark navy canvas with logo-coloured orbs
   ============================================================ */
.hero {
  background: var(--grad-hero-bg);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
  --background-color: #021929;
}

/* Animated ambient orbs — using logo colours */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #006EA6 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #47C7F4 0%, transparent 70%);
  bottom: -80px;
  left: 5%;
  animation-delay: -6s;
  animation-duration: 15s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Dot-grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(71,199,244,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

/* Brand-first hero mark */
.hero .hero-brand {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #47C7F4;
}

.hero .hero-brand.hero-brand-animate {
  animation: brand-in 0.8s ease both;
}

@keyframes brand-in {
  from { opacity: 0; letter-spacing: 0.45em; transform: translateY(8px); }
  to   { opacity: 1; letter-spacing: 0.28em; transform: translateY(0); }
}

/* Hero headline — crisp white, bold, high contrast */
.hero .hero-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero .hero-content h1 .accent-word {
  color: #47C7F4;
}

@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 2.4rem;
  }
}

.hero .hero-content > p {
  color: #a8c8dc;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Rotating tech stack line */
.hero-tech-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  min-height: 1.75rem;
}

.hero-tech-label {
  color: #6e9db8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-tech-rotator {
  display: inline-block;
  color: #e8f4fb;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(71, 199, 244, 0.55);
  padding-bottom: 2px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-tech-rotator.is-exiting {
  opacity: 0;
  transform: translateY(-8px);
}

.hero-tech-rotator.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* CTA button — gradient */
.hero .hero-cta .btn-primary {
  background: var(--grad-main);
  color: #fff;
  padding: 15px 34px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 6px 30px rgba(23,154,215,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.hero .hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(23,154,215,0.55);
  color: #fff;
}

.hero .hero-cta .btn-secondary {
  color: #d0eaf6;
  border: 1.5px solid rgba(71, 199, 244, 0.35);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .hero-cta .btn-secondary:hover {
  color: #ffffff;
  border-color: #47C7F4;
  background: rgba(71, 199, 244, 0.1);
}

/* Hero visual */
.hero .hero-image {
  position: relative;
  isolation: isolate;
}

.hero .hero-image::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto 8%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(71, 199, 244, 0.35) 0%, transparent 70%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.hero .hero-visual-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%),
    #f4faff;
  border: 1px solid rgba(71, 199, 244, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translateY(0) perspective(1200px) rotateY(-2deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero .hero-visual-frame:hover {
  transform: translateY(-6px) perspective(1200px) rotateY(0deg);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(71, 199, 244, 0.45);
}

.hero .hero-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

@media (max-width: 991px) {
  .hero .hero-visual-frame {
    transform: none;
  }

  .hero .hero-visual-frame:hover {
    transform: translateY(-4px);
  }
}

/* Scanline disabled — kept clarity of the hero product image */

/* Stats numbers — solid sky blue for clarity */
.hero .hero-stats {
  gap: 1.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(71, 199, 244, 0.12);
}

.hero .hero-stats .stat-item .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #47C7F4 0%, #179AD7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero-stats .stat-item .stat-label {
  color: #6e9db8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ============================================================
   5. SECTION TITLES — pill badge + gradient underline
   ============================================================ */
.section-title .subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(23,154,215,0.10) 0%, rgba(71,199,244,0.07) 100%);
  color: var(--accent-color);
  border: 1px solid rgba(23,154,215,0.22);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title .subtitle::after {
  display: none;
}

.section-title h2 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: var(--grad-main);
}

/* ============================================================
   6. ABOUT SECTION
   ============================================================ */
.about .content h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.about .stats-row .stat-item .stat-number {
  font-weight: 800;
  color: #179AD7;
}

.about .image-wrapper .floating-card {
  border-radius: 16px;
  border: 1px solid rgba(23,154,215,0.12);
  box-shadow: var(--shadow-card);
}

.about .image-wrapper .floating-card .card-content .icon {
  background: linear-gradient(135deg, rgba(23,154,215,0.12) 0%, rgba(71,199,244,0.08) 100%);
  border: 1px solid rgba(23,154,215,0.2);
}

.about .image-wrapper .floating-card .card-content .icon i {
  color: var(--accent-color);
}

.about .image-wrapper img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(23,154,215,0.12);
}

/* ============================================================
   7. SERVICES SECTION
   ============================================================ */
.services {
  background: linear-gradient(180deg, #f0f8fd 0%, #fafcff 100%);
}

.services .service-item {
  border-radius: 20px;
  border: 1px solid rgba(23,154,215,0.08);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 48px 36px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.services .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(23,154,215,0.18);
  border-color: rgba(23,154,215,0.25);
}

.services .service-item::before {
  background: var(--grad-main);
  height: 3px;
  border-radius: 0 0 4px 4px;
}

.services .service-item:hover::before {
  transform: scaleX(1);
}

.services .service-item .service-icon {
  background: var(--grad-main);
  border-radius: 16px;
  width: 72px;
  height: 72px;
  box-shadow: 0 8px 24px rgba(23,154,215,0.35);
}

.services .service-item:hover .service-icon {
  box-shadow: 0 12px 32px rgba(23,154,215,0.55);
  transform: scale(1.05) rotate(-3deg);
}

.services .service-item .service-icon i {
  font-size: 28px;
  color: #ffffff;
}

.services .service-item h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading-color);
}

.services .service-item .service-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.services .service-item .service-link i {
  color: var(--accent-color);
}

/* ============================================================
   8. WHY US SECTION
   ============================================================ */
.why-us .content h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.why-us .icon-wrapper {
  background: linear-gradient(135deg, rgba(23,154,215,0.10) 0%, rgba(71,199,244,0.07) 100%);
  border: 1px solid rgba(23,154,215,0.15);
  color: var(--accent-color);
  border-radius: 16px;
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.why-us .feature-item:hover .icon-wrapper {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(23,154,215,0.35);
  transform: scale(1.1) rotate(-5deg);
}

.why-us .feature-content h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-us .image-wrapper img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(23,154,215,0.12);
}

/* ============================================================
   9. PORTFOLIO SECTION
   ============================================================ */
.portfolio .portfolio-filters {
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio .portfolio-filters li {
  margin: 0;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid rgba(23,154,215,0.18);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a6275;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio .portfolio-filters li::after {
  display: none;
}

.portfolio .portfolio-filters li:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(23,154,215,0.05);
}

.portfolio .portfolio-filters li.filter-active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(23,154,215,0.35);
  font-weight: 600;
}

.portfolio .portfolio-card-modern {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(23,154,215,0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(2, 25, 41, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.portfolio .portfolio-card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(23,154,215,0.28);
  box-shadow: 0 18px 44px rgba(23,154,215,0.14);
}

.portfolio .portfolio-card-modern .project-visual {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.portfolio .portfolio-card-modern .project-visual img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio .portfolio-card-modern .project-visual .project-overlay {
  background: linear-gradient(135deg, rgba(0,110,166,0.88) 0%, rgba(23,154,215,0.78) 100%);
}

.portfolio .portfolio-card-modern .project-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
  justify-content: flex-start;
}

.portfolio .portfolio-card-modern .project-header {
  margin-bottom: 12px;
}

.portfolio .portfolio-card-modern .project-header .project-category {
  background: linear-gradient(135deg, rgba(23,154,215,0.10) 0%, rgba(71,199,244,0.07) 100%);
  border: 1px solid rgba(23,154,215,0.22);
  color: var(--accent-color);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio .portfolio-card-modern .project-header .project-year {
  color: #7a93a6;
  font-size: 0.85rem;
  font-weight: 600;
}

.portfolio .portfolio-card-modern .project-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.portfolio .portfolio-card-modern .project-description {
  color: #4a6275;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.portfolio .portfolio-card-modern .project-outcome {
  margin: 0 0 1.25rem;
  padding: 10px 14px;
  border-left: 3px solid #179AD7;
  background: rgba(23,154,215,0.06);
  border-radius: 0 10px 10px 0;
  color: #23485c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.portfolio .portfolio-card-modern .project-outcome strong {
  color: #006EA6;
  font-weight: 700;
}

.portfolio .portfolio-card-modern .project-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio .portfolio-card-modern .project-meta .client-name {
  color: #021929;
  font-weight: 600;
  font-size: 0.9rem;
}

.portfolio .portfolio-card-modern .project-meta .project-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio .portfolio-card-modern .project-meta .project-scope .scope-item {
  background: rgba(23,154,215,0.05);
  border: 1px solid rgba(23,154,215,0.12);
  border-radius: 8px;
  padding: 4px 12px;
  color: #4a6275;
  font-size: 0.75rem;
  font-weight: 500;
}

.portfolio .portfolio-card-modern .project-meta .project-scope .scope-item:not(:last-child)::after {
  display: none;
}

.portfolio .portfolio-conclusion {
  background: linear-gradient(135deg, rgba(23,154,215,0.06) 0%, rgba(71,199,244,0.04) 100%);
  border: 1px solid rgba(23,154,215,0.12);
  border-radius: 20px;
  padding: 52px 40px;
  margin-top: 64px;
}

.portfolio .portfolio-conclusion .conclusion-content h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.85rem;
}

.portfolio .portfolio-conclusion .conclusion-actions .primary-action {
  background: var(--grad-main);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s ease;
  box-shadow: 0 6px 24px rgba(23,154,215,0.35);
}

.portfolio .portfolio-conclusion .conclusion-actions .primary-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(23,154,215,0.50);
  color: #fff;
}

.portfolio .portfolio-conclusion .conclusion-actions .secondary-action {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(23,154,215,0.3);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.portfolio .portfolio-conclusion .conclusion-actions .secondary-action:hover {
  border-color: var(--accent-color);
}

/* ============================================================
   10. TESTIMONIALS SECTION
   ============================================================ */
.testimonials {
  background: linear-gradient(180deg, #f0f8fd 0%, #e8f4fb 100%);
}

.testimonials .testimonial-item {
  border-radius: 20px;
  border: 1px solid rgba(23,154,215,0.10);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(23,154,215,0.14);
  border-color: rgba(23,154,215,0.22);
}

.testimonials .testimonial-item .rating i {
  color: #f59e0b;
}

.testimonials .testimonial-item .testimonial-footer .quote-icon i {
  color: var(--accent-color);
  opacity: 0.2;
}

.testimonials .swiper-button-prev,
.testimonials .swiper-button-next {
  background: var(--grad-main);
  box-shadow: 0 4px 16px rgba(23,154,215,0.4);
  transition: all 0.3s ease;
}

.testimonials .swiper-button-prev:hover,
.testimonials .swiper-button-next:hover {
  background: var(--grad-main);
  box-shadow: 0 8px 24px rgba(23,154,215,0.55);
  transform: scale(1.08);
}

.testimonials .swiper-button-prev::after,
.testimonials .swiper-button-next::after {
  color: #fff;
}

/* ============================================================
   11. CONTACT SECTION — compact modern panel
   ============================================================ */
.contact.contact-modern {
  --background-color: #eef6fb;
  padding: 70px 0;
}

.contact-panel {
  background: #ffffff;
  border: 1px solid rgba(23, 154, 215, 0.14);
  border-radius: 24px;
  padding: 36px 36px;
  box-shadow: 0 16px 48px rgba(2, 25, 41, 0.06);
}

.contact-aside {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 8px;
}

.contact-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 154, 215, 0.1);
  border: 1px solid rgba(23, 154, 215, 0.2);
  color: #179AD7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-aside h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #021929;
  margin-bottom: 0.75rem;
}

.contact-aside > p {
  color: #5a7386;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.contact-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f9fd;
  border: 1px solid rgba(23, 154, 215, 0.12);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background 0.25s ease;
}

a.contact-chip:hover {
  border-color: rgba(23, 154, 215, 0.35);
  background: #eaf6fc;
}

.contact-chip i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-main);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-chip span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  color: #4a6275;
  line-height: 1.35;
}

.contact-chip strong {
  color: #021929;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form-modern input,
.contact-form-modern textarea {
  width: 100%;
  border: 1.5px solid rgba(23, 154, 215, 0.16);
  border-radius: 12px;
  background: #f7fbfe;
  padding: 12px 14px;
  color: #021929;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-modern textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
  outline: none;
  border-color: #179AD7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 154, 215, 0.1);
}

.contact-form-modern .submit-btn {
  margin-top: 4px;
  background: var(--grad-main);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(23, 154, 215, 0.3);
}

.contact-form-modern .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(23, 154, 215, 0.42);
  color: #fff;
}

.contact-form-modern .form-status .loading,
.contact-form-modern .form-status .error-message,
.contact-form-modern .form-status .sent-message {
  display: none;
}


@media (max-width: 991px) {
  .contact.contact-modern {
    padding: 56px 0;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .contact-aside h2 {
    font-size: 1.75rem;
  }
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: #021929 !important;
  --background-color: #021929;
}

.footer .footer-top {
  border-top: 1px solid rgba(71, 199, 244, 0.14);
  padding-top: 48px;
  padding-bottom: 12px;
}

.footer .footer-about .logo .sitename {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer .footer-about p {
  color: #6e9db8;
  line-height: 1.7;
  margin: 14px 0 18px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #47C7F4;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.25s ease, color 0.25s ease;
}

.footer-cta:hover {
  color: #ffffff;
  gap: 12px;
}

.footer h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e8f4fb;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer .footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer .footer-links ul li {
  padding: 0;
  margin: 0 0 0.55rem;
}

.footer .footer-links ul a {
  color: #6e9db8;
  transition: color 0.25s ease;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer .footer-links ul a:hover {
  color: #47C7F4;
}

.footer .footer-contact {
  text-align: left !important;
}

.footer .footer-address,
.footer .footer-email {
  color: #6e9db8;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer .footer-email a,
.footer .footer-contact a {
  color: #47C7F4;
  text-decoration: none;
}

.footer .footer-email a:hover,
.footer .footer-contact a:hover {
  color: #ffffff;
}

.footer .copyright {
  border-top: 1px solid rgba(71, 199, 244, 0.1);
  background: transparent;
  padding: 22px 0 28px;
  margin-top: 20px;
}

.footer .copyright-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer .copyright p {
  margin: 0;
  color: #4a6275;
  font-size: 0.88rem;
}

.footer .copyright-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .copyright-links a {
  color: #6e9db8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer .copyright-links a:hover {
  color: #47C7F4;
}

@media (max-width: 767px) {
  .footer .copyright-row {
    flex-direction: column;
    text-align: center;
  }

  .footer .copyright-links {
    justify-content: center;
  }
}

/* ============================================================
   12b. LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-page .header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(23, 154, 215, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-page .main {
  padding-top: 86px;
}

.legal-hero {
  background: linear-gradient(160deg, #021929 0%, #03304a 55%, #021f38 100%);
  color: #e8f4fb;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(71, 199, 244, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #8fb4cb;
}

.legal-breadcrumb a {
  color: #47C7F4;
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  color: #ffffff;
}

.legal-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.legal-hero > .container > p {
  max-width: 640px;
  color: #a8c8dc;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-updated {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(71, 199, 244, 0.12);
  border: 1px solid rgba(71, 199, 244, 0.25);
  color: #47C7F4;
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-content {
  background: #f3f8fc;
  padding: 48px 0 80px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid rgba(23, 154, 215, 0.12);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 12px 40px rgba(2, 25, 41, 0.05);
}

.legal-card article + article {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(23, 154, 215, 0.1);
}

.legal-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #021929;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: #4a6275;
  line-height: 1.75;
  font-size: 0.98rem;
}

.legal-card ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.legal-card li + li {
  margin-top: 0.4rem;
}

.legal-card a {
  color: #179AD7;
  text-decoration: none;
  font-weight: 600;
}

.legal-card a:hover {
  color: #006EA6;
}

@media (max-width: 767px) {
  .legal-hero {
    padding: 48px 0 40px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-card {
    padding: 26px 20px;
  }
}

/* ============================================================
   12c. COOKIE CONSENT
   ============================================================ */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(23, 154, 215, 0.16);
  box-shadow: 0 -8px 28px rgba(2, 25, 41, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Keep scroll-top clear of the consent bar */
body.cookie-banner-open .scroll-top {
  bottom: calc(12px + var(--cookie-banner-height, 88px));
}

body.cookie-banner-open .scroll-top.active {
  visibility: visible;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent.is-hiding {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
}

.cookie-consent-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.cookie-consent-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #47C7F4 0%, #179AD7 55%, #006EA6 100%);
  color: #ffffff;
  font-size: 1.05rem;
}

.cookie-consent-title {
  margin: 0 0 4px;
  color: #021929;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-consent-text {
  margin: 0;
  color: #5a7386;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 620px;
}

.cookie-consent-text a {
  color: #179AD7;
  font-weight: 600;
  text-decoration: none;
}

.cookie-consent-text a:hover {
  color: #006EA6;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-ghost {
  background: #f3f9fd;
  color: #021929;
  border: 1px solid rgba(23, 154, 215, 0.2);
}

.cookie-btn-ghost:hover {
  border-color: rgba(23, 154, 215, 0.4);
  background: #eaf6fc;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #47C7F4 0%, #179AD7 55%, #006EA6 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 154, 215, 0.25);
}

.cookie-btn-primary:hover {
  filter: brightness(1.05);
  color: #ffffff;
}

@media (max-width: 767px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 18px;
    gap: 14px;
  }

  .cookie-consent-actions {
    flex-direction: column-reverse;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: none;
  }
}

/* ============================================================
   13. SCROLL TOP BUTTON
   ============================================================ */
.scroll-top {
  background: var(--grad-main);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(23,154,215,0.4);
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background: var(--grad-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(23,154,215,0.55);
}

/* ============================================================
   14. PRELOADER
   ============================================================ */
#preloader::before {
  border-color: #006EA6 transparent #47C7F4 transparent;
}

/* ============================================================
   15. MISC UTILITIES
   ============================================================ */
.text-gradient {
  color: #179AD7;
}

section + section {
  position: relative;
}

/* Mobile responsive tweaks */
@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 2.4rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .portfolio .portfolio-filters li {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .portfolio .portfolio-card-modern .project-details {
    padding: 22px 20px 24px;
  }

  .portfolio .portfolio-card-modern .project-visual img {
    height: 200px;
  }

  .portfolio .portfolio-conclusion {
    padding: 36px 22px;
    margin-top: 48px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 100px 0 80px;
  }

  .hero .hero-content h1 {
    font-size: 2rem;
  }

  .services .service-item {
    padding: 36px 24px;
  }
}

/* ============================================================
   16. AI SERVICES SECTION
   ============================================================ */
.ai-services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #021929 0%, #032a45 48%, #021f38 100%);
  padding: 100px 0;
  --background-color: #021929;
  --heading-color: #e8f4fb;
  --default-color: #8fb4cb;
}

.ai-services .section-title h2,
.ai-services .section-title p {
  color: #e8f4fb;
}

.ai-services .section-title p {
  color: #8fb4cb;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ai-services .section-title .subtitle {
  background: rgba(71, 199, 244, 0.1);
  border-color: rgba(71, 199, 244, 0.28);
  color: #47C7F4;
}

.ai-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.ai-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #006EA6 0%, transparent 70%);
  top: -80px;
  left: -60px;
}

.ai-orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #47C7F4 0%, transparent 70%);
  bottom: -100px;
  right: -40px;
  animation-delay: -5s;
}

.ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71, 199, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 199, 244, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

.ai-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.ai-circuit .circuit-path {
  fill: none;
  stroke: #179AD7;
  stroke-width: 1.5;
  stroke-dasharray: 8 12;
  animation: circuit-flow 18s linear infinite;
}

.ai-circuit .circuit-path-2 {
  stroke: #47C7F4;
  animation-duration: 22s;
  animation-direction: reverse;
}

.ai-circuit .circuit-node {
  fill: #47C7F4;
  transform-origin: center;
  transform-box: fill-box;
  animation: node-pulse 2.4s ease-in-out infinite;
}

.ai-circuit .circuit-node-2 {
  animation-delay: 1.2s;
}

@keyframes circuit-flow {
  to { stroke-dashoffset: -400; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

.ai-services .container {
  position: relative;
  z-index: 1;
}

.ai-card {
  height: 100%;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(71, 199, 244, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(28px);
}

.ai-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s ease var(--reveal-delay, 0ms),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.ai-card:hover {
  border-color: rgba(71, 199, 244, 0.4);
  background: rgba(71, 199, 244, 0.08);
  box-shadow: 0 16px 40px rgba(2, 25, 41, 0.35);
}

.ai-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  background: linear-gradient(135deg, #006EA6 0%, #47C7F4 100%);
  box-shadow: 0 8px 20px rgba(23, 154, 215, 0.28);
  color: #fff;
  font-size: 1.35rem;
}

.ai-card h3 {
  color: #e8f4fb;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.ai-card p {
  color: #8fb4cb;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.ai-cta-panel {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 32px 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 110, 166, 0.45) 0%, rgba(23, 154, 215, 0.28) 100%);
  border: 1px solid rgba(71, 199, 244, 0.28);
  opacity: 0;
  transform: translateY(28px);
}

.ai-cta-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s ease var(--reveal-delay, 0ms);
}

.ai-cta-copy {
  flex: 1 1 260px;
}

.ai-cta-copy h3 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.ai-cta-copy p {
  color: #b7d7ea;
  margin: 0;
  line-height: 1.65;
}

.ai-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 12px;
  background: #ffffff;
  color: #006EA6;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(2, 25, 41, 0.25);
}

.ai-cta-btn:hover {
  transform: translateY(-3px);
  color: #021929;
  box-shadow: 0 12px 28px rgba(2, 25, 41, 0.35);
}

@media (max-width: 768px) {
  .ai-services {
    padding: 72px 0;
  }

  .ai-cta-panel {
    padding: 28px 22px;
  }

  .hero .hero-brand {
    letter-spacing: 0.2em;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-orb,
  .ai-circuit .circuit-path,
  .ai-circuit .circuit-node,
  .hero .hero-brand.hero-brand-animate {
    animation: none !important;
  }

  .ai-card,
  .ai-cta-panel {
    opacity: 1;
    transform: none;
  }
}
