/* =============================================
   MODERN ENHANCEMENTS
   ============================================= */

:root {
  --accent-blue: #2f89fc;
  --accent-green: #79efb4;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
}

/* =============================================
   CURSOR — mix-blend-mode: difference blob
   ============================================= */
.cursor-blob {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: left, top, width, height;
  transition: width  0.45s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.cursor-blob.is-active  { opacity: 1; }
.cursor-blob.hovering   { width: 68px; height: 68px; }

/* Only replace cursor on pointer-capable devices */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
body .KW_progressBar {
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%) !important;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ── Animated orbs ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb--blue {
  width: 60%;
  height: 85%;
  top: -20%;
  left: -15%;
  background: radial-gradient(ellipse at center,
    rgba(47, 137, 252, 0.22) 0%, transparent 70%);
  filter: blur(45px);
  animation: orbDrift1 14s ease-in-out infinite alternate;
}

.hero-orb--green {
  width: 55%;
  height: 80%;
  bottom: -20%;
  right: -15%;
  background: radial-gradient(ellipse at center,
    rgba(121, 239, 180, 0.15) 0%, transparent 70%);
  filter: blur(55px);
  animation: orbDrift2 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift1 {
  0%   { transform: translate(0,    0)    scale(1);    }
  33%  { transform: translate(60px, -40px) scale(1.12); }
  66%  { transform: translate(-30px, 55px) scale(0.92); }
  100% { transform: translate(45px,  25px) scale(1.06); }
}

@keyframes orbDrift2 {
  0%   { transform: translate(0,     0)    scale(1);    }
  40%  { transform: translate(-55px, 35px) scale(1.09); }
  70%  { transform: translate( 35px,-45px) scale(0.94); }
  100% { transform: translate(-25px, 18px) scale(1.04); }
}

/* ── Dot-grid overlay ── */
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(47,137,252,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,137,252,0.045) 1px, transparent 1px);
  background-size: 65px 65px;
  pointer-events: none;
  z-index: 0;
}

/* ── Content sits above everything ── */
.hero-section .container {
  position: relative;
  z-index: 1;
}

/* ── Greeting label ── */
.hero-greeting {
  font-size: 11px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--accent-green) !important;
  margin-bottom: 24px;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.hero-greeting::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: var(--accent-green);
  animation: lineBreath 3.5s ease-in-out infinite;
}

@keyframes lineBreath {
  0%, 100% { width: 18px; opacity: 0.45; }
  50%       { width: 55px; opacity: 1;    }
}

/* ── Role headline ── */
.hero-role-wrap {
  font-size: 62px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 1.2;
  margin: 0 0 32px;
}

@media (max-width: 767.98px) {
  .hero-role-wrap {
    font-size: 34px;
    letter-spacing: 3px;
  }
}

/* ── JS-driven text scramble ── */
.hero-roles {
  display: block;
  min-height: 1.25em;
}

/* Scrambling characters shown in accent blue */
.hero-roles .scramble-char {
  color: var(--accent-blue);
  opacity: 0.65;
}

/* ── Down-arrow ── */
.hero-scroll-down {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 28px;
  text-decoration: none !important;
  animation: arrowBounce 2.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.5; }
  50%       { transform: translateY(14px); opacity: 1;   }
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.heading-section span {
  color: var(--accent-green) !important;
  letter-spacing: 6px;
}

.heading-section::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.author-img {
  filter: grayscale(8%);
  transition: filter 0.6s ease !important;
}

.about-section:hover .author-img {
  filter: grayscale(0%);
}

.about-desc a[href^="mailto"] {
  border-bottom: 1px solid rgba(47, 137, 252, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.about-desc a[href^="mailto"]:hover {
  border-color: var(--accent-blue);
  text-decoration: none;
}

/* =============================================
   SERVICE CARDS — GLASSMORPHISM
   ============================================= */
.services {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 22px !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg,
    rgba(47, 137, 252, 0.07),
    rgba(121, 239, 180, 0.04));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.services:hover::before { opacity: 1; }

.services:hover {
  transform: translateY(-12px) !important;
  border-color: rgba(47, 137, 252, 0.38) !important;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(47,137,252,0.08),
    0 0 40px rgba(47,137,252,0.07) !important;
}

.services .icon span {
  background: linear-gradient(135deg, var(--accent-blue) 30%, var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 50px !important;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services:hover .icon span { transform: scale(1.18) rotate(-6deg); }

.services .media-body .heading { transition: color 0.3s ease; }
.services:hover .media-body .heading { color: #fff; }

/* =============================================
   NEWS / BLOG CARD
   ============================================= */
.blog-entry {
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: var(--surface) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease !important;
}

.blog-entry:hover {
  transform: translateY(-10px) !important;
  border-color: rgba(47, 137, 252, 0.35) !important;
  box-shadow: 0 25px 55px rgba(0,0,0,0.45) !important;
}

/* =============================================
   PORTFOLIO — OVERLAY + ICON REVEAL
   ============================================= */
.block-3 .image { position: relative; }

.block-3 .image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(47, 137, 252, 0.82),
    rgba(121, 239, 180, 0.6));
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.block-3 .image:hover::before { opacity: 1; }

.block-3 .image .icon {
  position: relative;
  z-index: 2;
  opacity: 0 !important;
  transform: scale(0.4) rotate(-60deg) !important;
  transition: opacity  0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.block-3 .image:hover .icon {
  opacity: 1 !important;
  transform: scale(1) rotate(0deg) !important;
}

.block-3 .text .subheading {
  color: var(--accent-green) !important;
  letter-spacing: 3px !important;
}

.block-3 .text .heading a { transition: color 0.3s ease; }
.block-3 .text .heading a:hover { color: var(--accent-blue) !important; }

.block-3 .text p:last-child a {
  border-bottom: 1px solid rgba(47, 137, 252, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.block-3 .text p:last-child a:hover { border-color: var(--accent-blue); }

/* =============================================
   COUNTER NUMBERS — GRADIENT TEXT
   ============================================= */
.ftco-counter .text strong.number {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
  font-size: 140px !important;
  line-height: 1 !important;
}

@media (max-width: 767.98px) {
  .ftco-counter .text strong.number { font-size: 80px !important; }
}

.ftco-counter .ftco-label {
  color: rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 2px;
}

/* =============================================
   FOOTER — SOCIAL ICONS
   ============================================= */
.ftco-footer-social li a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease !important;
}

.ftco-footer-social li a:hover {
  background: rgba(47, 137, 252, 0.15) !important;
  border-color: rgba(47, 137, 252, 0.45) !important;
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(47, 137, 252, 0.18);
}

.about-desc .ftco-footer-social li a:hover {
  background: rgba(121, 239, 180, 0.14) !important;
  border-color: rgba(121, 239, 180, 0.45) !important;
  box-shadow: 0 12px 28px rgba(121, 239, 180, 0.15);
}

.ftco-footer .h3.email a:hover {
  color: var(--accent-green) !important;
  text-decoration: none;
}

/* =============================================
   SECTION SEPARATORS
   ============================================= */
#about, #services, #portfolio, #section-counter, .ftco-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
