/*--------------------------------------------------------------
  Modern UI layer
  Loaded after style.css; overrides the base theme with a refreshed
  look and motion. Remove this file (and js/modern.js) to revert.
--------------------------------------------------------------*/

:root {
  --brand: #11bd8e;
  --brand-dark: #0a9b74;
  --accent: #0b6bd3;
  --gradient: linear-gradient(135deg, #11bd8e 0%, #0b6bd3 100%);
  --ink: #0f1f33;
  --text: #4a5a6b;
  --muted: #7a8899;
  --surface: #ffffff;
  --surface-alt: #f3f8fc;
  --radius: 16px;
  --shadow-sm: 0 4px 14px rgba(15, 31, 51, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 31, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 31, 51, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Inter", "Open Sans", sans-serif;
  --font-head: "Poppins", "Montserrat", sans-serif;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.main-nav a,
.btn-get-started,
.btn-services {
  font-family: var(--font-head);
}

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

a:hover,
a:focus {
  color: var(--accent);
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* Scroll progress bar
--------------------------------*/

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
}

/* Header
--------------------------------*/

#header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: none;
  border-bottom: 1px solid rgba(15, 31, 51, 0.06);
  transition: height 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 31, 51, 0.08);
}

#header {
  height: 96px;
  padding: 14px 0;
}

#header.header-scrolled {
  height: 80px;
  padding: 10px 0;
}

#header .logo img {
  max-height: 68px;
  margin: 0;
  transition: max-height 0.4s var(--ease), margin 0.4s var(--ease);
}

#header.header-scrolled .logo img {
  max-height: 60px;
}

#header .main-nav {
  margin-top: 14px;
}

#header.header-scrolled .main-nav {
  margin-top: 10px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 10px 16px;
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.active > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a:hover,
.main-nav .active > a,
.main-nav li:hover > a {
  color: var(--brand-dark);
}

/* Mobile navigation */

.mobile-nav {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  padding-top: 24px;
}

.mobile-nav a {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  padding: 12px 24px;
  border-left: 3px solid transparent;
  transition: all 0.3s var(--ease);
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
  color: var(--brand-dark);
  border-left-color: var(--brand);
  background: rgba(17, 189, 142, 0.06);
}

.mobile-nav-toggle i {
  color: var(--ink);
}

.mobile-nav-overly {
  background: rgba(15, 31, 51, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Intro / hero
--------------------------------*/

#intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0a9b74, #11bd8e, #0e8fb8, #0b6bd3);
  background-size: 300% 300%;
  -webkit-animation: hero-gradient 18s ease infinite;
  animation: hero-gradient 18s ease infinite;
  padding: 180px 0 160px 0;
  isolation: isolate;
  /* Hide the sub-pixel seam where the gradient meets the white wave */
  box-shadow: inset 0 -3px 0 #fff;
}

/* Soft floating light blobs */
#intro::before,
#intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

#intro::before {
  width: 460px;
  height: 460px;
  background: #7cf5d3;
  top: -120px;
  left: -120px;
  -webkit-animation: blob-float 16s ease-in-out infinite;
  animation: blob-float 16s ease-in-out infinite;
}

#intro::after {
  width: 380px;
  height: 380px;
  background: #5aa8ff;
  bottom: -80px;
  right: -60px;
  -webkit-animation: blob-float 20s ease-in-out infinite reverse;
  animation: blob-float 20s ease-in-out infinite reverse;
}

#intro .hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  display: block;
  z-index: 1;
}

#intro .container {
  position: relative;
  z-index: 2;
}

#intro .intro-img img {
  -webkit-animation: hero-bob 6s ease-in-out infinite;
  animation: hero-bob 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 40, 80, 0.25));
}

#intro .intro-info h2 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 10px 30px rgba(0, 40, 80, 0.18);
}

#intro .intro-info h2 span {
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

#intro .intro-info h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  -webkit-animation: underline-in 0.9s var(--ease) 1s forwards;
  animation: underline-in 0.9s var(--ease) 1s forwards;
}

#intro .intro-info .btn-get-started,
#intro .intro-info .btn-services {
  position: relative;
  overflow: hidden;
  padding: 13px 34px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#intro .intro-info .btn-get-started {
  background: #fff;
  border: 2px solid #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 30px rgba(0, 40, 80, 0.2);
}

#intro .intro-info .btn-get-started:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 40, 80, 0.28);
}

/* Shine sweep on hover */
#intro .intro-info .btn-get-started::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(17, 189, 142, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

#intro .intro-info .btn-get-started:hover::before {
  left: 125%;
}

#intro .intro-info .btn-services {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#intro .intro-info .btn-services:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-3px);
}

/* Hero entrance */
.hero-in {
  opacity: 0;
  -webkit-animation: hero-in 0.9s var(--ease) forwards;
  animation: hero-in 0.9s var(--ease) forwards;
}

/* Section headers
--------------------------------*/

.section-header h3 {
  color: var(--ink);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.5px;
  padding-bottom: 18px;
}

.section-header h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 4px;
  margin-left: -30px;
  border-radius: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.8s var(--ease) 0.2s;
}

.section-header.is-visible h3::after {
  transform: scaleX(1);
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  width: 70%;
  margin-top: 14px;
}

.section-bg {
  background: var(--surface-alt);
}

/* About
--------------------------------*/

#about {
  padding: 90px 0 60px 0;
}

#about .about-container .icon-box {
  padding: 22px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(15, 31, 51, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#about .about-container .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

#about .about-container .icon-box .icon {
  border: 0;
  border-radius: 14px;
  background: rgba(17, 189, 142, 0.1);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

#about .about-container .icon-box:hover .icon {
  background: var(--gradient);
  transform: rotate(-8deg) scale(1.05);
}

#about .about-container .icon-box .title a {
  color: var(--ink);
}


#about .about-extra h4 {
  color: var(--ink);
  font-weight: 700;
}

#about .about-extra p {
  line-height: 1.8;
}

/* Services
--------------------------------*/

#services {
  padding: 90px 0 60px 0;
  box-shadow: none;
}

#services .box {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 31, 51, 0.06);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}

/* Gradient top edge revealed on hover */
#services .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

#services .box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

#services .box:hover::before {
  transform: scaleX(1);
}

#services .box:hover .icon i {
  transform: scale(1.12) rotate(-6deg);
}

#services .icon i {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

#services .title a {
  color: var(--ink);
  transition: color 0.3s ease;
}

#services .box:hover .title a {
  color: var(--brand-dark);
}

/* Why us
--------------------------------*/

#why-us {
  position: relative;
  padding: 90px 0 40px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(17, 189, 142, 0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(11, 107, 211, 0.3), transparent 45%),
    #0f1f33;
  overflow: hidden;
}

#why-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

#why-us .section-header h3 {
  color: #fff;
}

#why-us .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

/* Portfolio
--------------------------------*/

#portfolio {
  padding: 90px 0 60px 0;
  box-shadow: none;
}

#portfolio #portfolio-flters li {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 22px;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid rgba(15, 31, 51, 0.06);
  transition: all 0.35s var(--ease);
}

#portfolio #portfolio-flters li:hover {
  color: var(--brand-dark);
  background: rgba(17, 189, 142, 0.1);
  transform: translateY(-2px);
}

#portfolio #portfolio-flters li.filter-active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(17, 189, 142, 0.3);
}

#portfolio .portfolio-item .portfolio-wrap {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

#portfolio .portfolio-item .portfolio-wrap img {
  transition: transform 0.8s var(--ease);
}

#portfolio .portfolio-item .portfolio-wrap:hover {
  background: transparent;
  box-shadow: var(--shadow-lg);
}

#portfolio .portfolio-item .portfolio-wrap:hover img {
  opacity: 1;
  transform: scale(1.08);
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info {
  background: linear-gradient(180deg, rgba(10, 155, 116, 0.55) 0%, rgba(11, 60, 130, 0.88) 100%);
  transition: opacity 0.4s var(--ease);
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info > * {
  transform: translateY(18px);
  transition: transform 0.5s var(--ease);
}

#portfolio .portfolio-item .portfolio-wrap:hover .portfolio-info > * {
  transform: translateY(0);
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 {
  line-height: 1.2;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover {
  background: #fff;
  transform: scale(1.1);
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover i,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover i {
  color: var(--accent);
}

/* Clients
--------------------------------*/

#clients {
  padding: 90px 0 70px 0;
  box-shadow: none;
}

#clients .client-logo {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 31, 51, 0.05);
}

#clients .clients-controls button {
  background: var(--gradient);
  box-shadow: 0 8px 20px rgba(17, 189, 142, 0.3);
}

#clients .clients-controls button:hover,
#clients .clients-controls button:focus {
  background: var(--gradient);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 12px 26px rgba(11, 107, 211, 0.35);
}

/* Contact
--------------------------------*/

#contact {
  padding: 90px 0 70px 0;
  box-shadow: none;
}

#contact .map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#contact .form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 31, 51, 0.05);
}

#contact .form input,
#contact .form textarea {
  border-radius: 12px;
  border: 1px solid #dfe7ef;
  background: var(--surface-alt);
  padding: 12px 16px;
  height: auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#contact .form input:focus,
#contact .form textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 189, 142, 0.15);
}

#contact .form button[type="submit"] {
  background: var(--gradient);
  border-radius: 50px;
  padding: 13px 40px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 24px rgba(17, 189, 142, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#contact .form button[type="submit"]:hover {
  background: var(--gradient);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11, 107, 211, 0.35);
}

#contact .form #sendmessage,
#contact .form #errormessage {
  border-radius: 12px;
}

/* Footer
--------------------------------*/

#footer {
  background: #0b1626;
  color: rgba(255, 255, 255, 0.75);
}

#footer .footer-top {
  background:
    radial-gradient(circle at 0% 0%, rgba(17, 189, 142, 0.14), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(11, 107, 211, 0.16), transparent 40%),
    #0f1f33;
  padding: 70px 0 40px 0;
}

#footer .footer-top h4 {
  color: #fff;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

#footer .footer-top .footer-links ul a {
  color: rgba(255, 255, 255, 0.75);
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s var(--ease);
}

#footer .footer-top .footer-links ul a:hover {
  color: var(--brand);
  transform: translateX(6px);
}

#footer .footer-top .social-links a {
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, transform 0.35s var(--ease);
}

#footer .footer-top .social-links a:hover {
  background: var(--gradient);
  transform: translateY(-4px);
}

#footer .footer-top .footer-newsletter form {
  position: relative;
}

#footer .footer-top .footer-newsletter input[type="email"] {
  border-radius: 50px 0 0 50px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
}

#footer .footer-top .footer-newsletter input[type="submit"] {
  border-radius: 0 50px 50px 0;
  padding: 10px 0;
  background: var(--gradient);
  font-family: var(--font-head);
  font-weight: 600;
}

#footer .footer-top .footer-newsletter input[type="submit"]:hover {
  background: var(--gradient);
  filter: brightness(1.1);
}

#footer .copyright,
#footer .credits {
  color: rgba(255, 255, 255, 0.6);
}

/* Back to top
--------------------------------*/

.back-to-top {
  background: var(--gradient);
  box-shadow: 0 10px 24px rgba(17, 189, 142, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 107, 211, 0.4);
}

/* Hero extras: network canvas, typed word, floating chips
--------------------------------*/

#intro .hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

#intro .intro-img,
#intro .hero-parallax {
  position: relative;
}

#intro .hero-parallax {
  transition: transform 0.6s var(--ease);
}

#intro .intro-img img,
#intro .hero-chip {
  will-change: transform;
}

.hero-typed {
  white-space: nowrap;
}

.hero-typed::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 12%;
  height: 76%;
  width: 3px;
  border-radius: 2px;
  background: #fff;
  -webkit-animation: caret-blink 1s steps(1) infinite;
  animation: caret-blink 1s steps(1) infinite;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 40, 80, 0.18);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  -webkit-animation: chip-pop 0.7s var(--ease) forwards, chip-float 5s ease-in-out infinite;
  animation: chip-pop 0.7s var(--ease) forwards, chip-float 5s ease-in-out infinite;
}

.hero-chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
}

.hero-chip-1 { top: 8%;  left: 2%;   animation-delay: 1.0s, 1.7s; }
.hero-chip-2 { top: 18%; right: 0;   animation-delay: 1.2s, 2.4s; }
.hero-chip-3 { bottom: 22%; left: -2%; animation-delay: 1.4s, 1.2s; }
.hero-chip-4 { bottom: 10%; right: 6%; animation-delay: 1.6s, 2.9s; }

/* Why-us feature cards
--------------------------------*/

#why-us .container {
  position: relative;
  z-index: 1;
}

#why-us .why-cards {
  margin-top: 10px;
}

#why-us .why-card {
  position: relative;
  height: calc(100% - 30px);
  margin-bottom: 30px;
  padding: 34px 26px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
  overflow: hidden;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}

#why-us .why-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(17, 189, 142, 0.6);
}

#why-us .why-icon {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(17, 189, 142, 0.35);
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease);
}

/* Pulsing ring */
#why-us .why-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px solid rgba(17, 189, 142, 0.6);
  -webkit-animation: ring-pulse 2.6s ease-out infinite;
  animation: ring-pulse 2.6s ease-out infinite;
}

#why-us .why-card:hover .why-icon {
  transform: rotate(-10deg) scale(1.08);
  border-radius: 50%;
}

#why-us .why-card h5 {
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 10px;
}

#why-us .why-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Cursor spotlight on cards
--------------------------------*/

.spotlight {
  --spot-x: 50%;
  --spot-y: 50%;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--spot-x) var(--spot-y), rgba(17, 189, 142, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.spotlight:hover::after {
  opacity: 1;
}

#about .about-container .icon-box {
  position: relative;
  overflow: hidden;
}

/* Word-by-word heading reveal
--------------------------------*/

.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(4deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.is-visible .split-word {
  opacity: 1;
  transform: none;
}

/* Portfolio: uniform card sizes
--------------------------------*/

#portfolio .portfolio-item .portfolio-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  -o-object-fit: contain;
  object-fit: contain;
  background: #fff;
}

/* Click ripple
--------------------------------*/

.ripple-host {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  pointer-events: none;
  -webkit-animation: ripple 0.7s ease-out forwards;
  animation: ripple 0.7s ease-out forwards;
}

/* About: animated media (blob, ring, floating cards)
--------------------------------*/

/* Keep the rotating rings from widening the page on small screens */
#about {
  overflow: hidden;
}

#about .about-media {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

#about .about-media img {
  position: relative;
  z-index: 1;
  animation: img-float 7s ease-in-out infinite;
}

#about .about-extra .about-media img {
  animation-delay: -2s;
}

/* Morphing gradient blob */
#about .about-media::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 11%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(17, 189, 142, 0.18), rgba(11, 107, 211, 0.18));
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  z-index: -1;
  animation: blob-morph 14s ease-in-out infinite;
}

/* Rotating dashed ring */
#about .about-media::after {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  top: 50%;
  left: 6%;
  translate: 0 -50%;
  border: 2px dashed rgba(17, 189, 142, 0.35);
  border-radius: 50%;
  z-index: -1;
  animation: ring-spin 40s linear infinite;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  animation: card-float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}

.float-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.float-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 18px;
}

.float-card-icon i {
  animation: globe-spin 8s ease-in-out infinite;
}

.float-card-globe {
  bottom: 8%;
  left: 2%;
}

.float-card-chart {
  top: 8%;
  right: 2%;
  animation-delay: -2s;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.mini-chart i {
  display: block;
  width: 7px;
  border-radius: 3px;
  background: var(--gradient);
  transform-origin: bottom;
  animation: bar-grow 2.4s ease-in-out infinite;
}

.mini-chart i:nth-child(1) { height: 40%; animation-delay: 0s; }
.mini-chart i:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.mini-chart i:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.mini-chart i:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.mini-chart i:nth-child(5) { height: 65%; animation-delay: 0.8s; }

.float-card-erp {
  bottom: 6%;
  left: 2%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation-delay: -3s;
}

.float-card-head i {
  display: inline-block;
  color: var(--brand);
  font-size: 18px;
  margin-right: 4px;
  animation: ring-spin 6s linear infinite;
}

.float-card-head strong {
  display: inline;
}

.erp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.erp-checklist li {
  position: relative;
  padding-left: 24px;
  margin: 4px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.erp-checklist li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-visible .erp-checklist li {
  opacity: 1;
  transform: none;
}

.is-visible .erp-checklist li::before {
  transform: scale(1);
}

.is-visible .erp-checklist li:nth-child(1), .is-visible .erp-checklist li:nth-child(1)::before { transition-delay: 0.5s; }
.is-visible .erp-checklist li:nth-child(2), .is-visible .erp-checklist li:nth-child(2)::before { transition-delay: 0.8s; }
.is-visible .erp-checklist li:nth-child(3), .is-visible .erp-checklist li:nth-child(3)::before { transition-delay: 1.1s; }
.is-visible .erp-checklist li:nth-child(4), .is-visible .erp-checklist li:nth-child(4)::before { transition-delay: 1.4s; }

/* About: text blocks and icon boxes */

#about .about-extra h4 {
  position: relative;
  padding-bottom: 14px;
}

#about .about-extra h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.3s;
}

#about .about-extra h4.is-visible::after {
  transform: scaleX(1);
}

#about .about-container .icon-box .icon {
  position: relative;
}

#about .about-container .icon-box .icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 18px;
  border: 2px solid rgba(17, 189, 142, 0.45);
  animation: ring-pulse 2.8s ease-out infinite;
}

#about .about-container .icon-box:nth-child(3) .icon::after { animation-delay: 0.9s; }
#about .about-container .icon-box:nth-child(4) .icon::after { animation-delay: 1.8s; }

#about .about-container .icon-box.is-visible .icon i {
  animation: icon-spin-in 0.9s var(--ease) both;
  animation-delay: calc(var(--reveal-delay, 0s) + 0.2s);
}

/* Services: floating shapes, bobbing icons, sweep
--------------------------------*/

#services {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#services::before,
#services::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

#services::before {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 189, 142, 0.22), transparent 70%);
  animation: blob-float 18s ease-in-out infinite;
}

#services::after {
  width: 120px;
  height: 120px;
  bottom: 12%;
  right: 6%;
  border-radius: 28px;
  border: 3px solid rgba(11, 107, 211, 0.15);
  animation: shape-drift 16s ease-in-out infinite;
}

#services .icon {
  animation: icon-bob 4s ease-in-out infinite;
}

#services .row > div:nth-child(2) .icon { animation-delay: -0.7s; }
#services .row > div:nth-child(3) .icon { animation-delay: -1.4s; }
#services .row > div:nth-child(4) .icon { animation-delay: -2.1s; }
#services .row > div:nth-child(5) .icon { animation-delay: -2.8s; }
#services .row > div:nth-child(6) .icon { animation-delay: -3.5s; }

/* Light sweep across the card on hover (::after is used by the spotlight) */
#services .box .sweep {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(17, 189, 142, 0.12), transparent);
  transform: rotate(20deg);
  transition: left 0.9s var(--ease);
  pointer-events: none;
}

#services .box:hover .sweep {
  left: 130%;
}

/* Why us: travelling border light, drifting orbs
--------------------------------*/

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

#why-us .why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle), transparent 0%, transparent 65%, #11bd8e 80%, #5aa8ff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-spin 5s linear infinite;
  pointer-events: none;
}

#why-us .why-cards > div:nth-child(2) .why-card::before { animation-delay: -1.25s; }
#why-us .why-cards > div:nth-child(3) .why-card::before { animation-delay: -2.5s; }
#why-us .why-cards > div:nth-child(4) .why-card::before { animation-delay: -3.75s; }

#why-us::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 20%;
  left: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 189, 142, 0.18), transparent 65%);
  filter: blur(20px);
  animation: blob-float 22s ease-in-out infinite;
  pointer-events: none;
}

#why-us .why-icon i {
  animation: icon-bob 3.5s ease-in-out infinite;
}

/* Portfolio: wipe-in, shine, filter pop
--------------------------------*/

.reveal.reveal-wipe {
  transform: none;
  clip-path: inset(0 0 100% 0 round 16px);
  transition: opacity 0.9s var(--ease), clip-path 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal-wipe.is-visible {
  clip-path: inset(0 0 0 0 round 16px);
}

#portfolio .portfolio-item .portfolio-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease);
  pointer-events: none;
}

#portfolio .portfolio-item .portfolio-wrap:hover::before {
  left: 130%;
}

#portfolio .portfolio-item.filter-pop .portfolio-wrap {
  animation: filter-pop 0.6s var(--ease);
}

@keyframes img-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 63% 37% 45% 55% / 55% 62% 38% 45%; }
  66% { border-radius: 38% 62% 56% 44% / 63% 38% 62% 37%; }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes globe-spin {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

@keyframes bar-grow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.45); }
}

@keyframes icon-spin-in {
  from { transform: rotate(-180deg) scale(0); }
  to { transform: none; }
}

@keyframes icon-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes shape-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-40px, -30px) rotate(45deg); }
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@keyframes filter-pop {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}

/* Scroll reveal
--------------------------------*/

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-zoom {
  transform: scale(0.92);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Keyframes
--------------------------------*/

@-webkit-keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@-webkit-keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 70px) scale(0.95); }
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 70px) scale(0.95); }
}

@-webkit-keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@-webkit-keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@-webkit-keyframes underline-in {
  to { transform: scaleX(1); }
}

@keyframes underline-in {
  to { transform: scaleX(1); }
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

@keyframes chip-pop {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

/* Responsive
--------------------------------*/

@media (max-width: 991px) {
  #header,
  #header.header-scrolled {
    height: 72px;
    padding: 8px 0;
  }

  #header .logo img,
  #header.header-scrolled .logo img {
    max-height: 56px;
  }

  .mobile-nav-toggle {
    top: 14px;
  }

  #intro {
    padding: 130px 0 110px 0;
  }

  #intro::before {
    width: 300px;
    height: 300px;
  }

  #intro::after {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 767px) {
  #about,
  #services,
  #why-us,
  #portfolio,
  #clients,
  #contact {
    padding-top: 60px;
  }

  .section-header h3 {
    font-size: 30px;
  }

  .section-header p {
    width: 100%;
    padding-bottom: 40px;
  }

  #intro .hero-wave {
    height: 50px;
  }

  #contact .form {
    padding: 20px;
  }

  .float-card {
    padding: 8px 12px;
    gap: 8px;
  }

  .float-card strong {
    font-size: 12px;
  }

  .float-card-erp {
    display: none;
  }

  .hero-chip {
    font-size: 12px;
    padding: 6px 12px 6px 6px;
    gap: 6px;
  }

  .hero-chip i {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .reveal.reveal-left,
  .reveal.reveal-right {
    transform: translateY(40px);
  }
}

/* Respect users who prefer less motion
--------------------------------*/

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-in {
    opacity: 1;
    transform: none;
  }
}
