/* ============================================================
   Francis Kusi – Portfolio | style.css
   Font: Montserrat | Colors: #ffffff #f5f5f5 #222222 #0d6efd
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  /* Premium Color Palette */
  --accent:      #14b8a6;
  --accent-dark: #0f9488;
  --accent-blue: #0066ff;
  --dark:        #0a0e27;
  --mid:         #4a5578;
  --muted:       #8892b0;
  --light:       #f8fafb;
  --white:       #ffffff;
  --border:      #e5e7eb;

  /* Premium Shadow System */
  --shadow-sm:   0 2px 8px rgba(10, 14, 39, 0.06);
  --shadow-md:   0 12px 32px rgba(10, 14, 39, 0.12);
  --shadow-lg:   0 20px 64px rgba(10, 14, 39, 0.15);
  --shadow-xl:   0 25px 80px rgba(10, 14, 39, 0.2);

  /* Spacing Grid */
  --spacing-xs:  4px;
  --spacing-sm:  8px;
  --spacing-md:  16px;
  --spacing-lg:  24px;
  --spacing-xl:  32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  --radius:      12px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:        'Montserrat', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  background-image:
    radial-gradient(circle at 2px 2px, rgba(20, 184, 166, 0.12) 2px, transparent 2px);
  background-size: 35px 35px;
  line-height: 1.8;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* ---------- Utilities ---------- */
.section-pad    { padding: 160px 0; }
.bg-light-custom { background: var(--light); }
.accent-color   { color: var(--accent); }
.fw-700  { font-weight: 700; }
.fw-800  { font-weight: 800; }
.text-gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Section spacing improvements */
section { position: relative; }
section + section { margin-top: 0; }

/* ---------- Global Container ---------- */
/* Cap content width and keep it centred with breathing room on all sides */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left:  auto;
  margin-right: auto;
  padding-left:  clamp(16px, 5vw, 48px);
  padding-right: clamp(16px, 5vw, 48px);
}

/* ---------- Section Header ---------- */
.section-header {
  margin-bottom: 6rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 55px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin: 0.8rem auto 0;
}
/* animated version — starts collapsed, expands when .active is added by JS */
.section-header .title-underline {
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.section-header .title-underline.active {
  width: 55px;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 61px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 99;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(20, 184, 166, 0.3);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNavbar {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.04);
  padding: 12px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

#mainNavbar.scrolled {
  padding: 8px 0;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.brand-logo {
  display: inline-block;
  height: 44px;
  width: 140px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #14b8a6 0%, #0f9488 100%);
  -webkit-mask: url('../images/my logo.png') no-repeat center / contain;
          mask: url('../images/my logo.png') no-repeat center / contain;
  transition: var(--transition);
}

.navbar-brand:hover .brand-logo {
  opacity: 0.82;
  transform: scale(1.04);
}

.brand-logo-footer {
  height: 40px;
  width: 130px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  filter: brightness(0) invert(1);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.brand-accent { color: var(--accent); }

/* Nav links — pill style */
.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid);
  padding: 7px 14px !important;
  border-radius: 30px;
  transition: color 0.25s ease, background 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
}

.nav-icon {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(13,110,253,0.07);
}

.nav-link.active {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(13,110,253,0.28);
}

.nav-link.active .nav-icon {
  opacity: 1;
  color: var(--white);
}

/* Remove the underline morph for pill style (pill replaces it) */
.nav-link::after { display: none; }

/* CV button in nav */
.nav-cv-btn {
  padding: 7px 14px !important;
  font-size: 0.78rem;
}

/* WhatsApp navbar button */
.btn-whatsapp-nav {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-whatsapp-nav:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transform: translateY(-2px);
}
.btn-whatsapp-nav i { font-size: 1rem; }

/* Floating WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 84px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 998;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease;
  animation: whatsapp-bounce 2.8s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.14) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  color: #fff;
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}
@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Tooltip on hover */
.whatsapp-fab-tooltip {
  position: absolute;
  right: 62px;
  background: #111;
  color: #fff;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.whatsapp-fab-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #111;
  border-right: none;
}
.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Custom animated hamburger */
.navbar-toggler {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.navbar-toggler:hover { background: rgba(13,110,253,0.08); }
.navbar-toggler:focus { box-shadow: none; outline: none; }

.toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
              opacity  0.25s ease,
              width    0.3s ease;
  transform-origin: center;
}

/* Animate to X when menu is open */
#mainNavbar.menu-open .toggler-icon:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#mainNavbar.menu-open .toggler-icon:nth-child(2) {
  opacity: 0;
  width: 0;
}
#mainNavbar.menu-open .toggler-icon:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
@media (max-width: 991px) {
  #navbarNav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-top: 12px;
    padding: 16px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.06);
  }
  .nav-link {
    padding: 10px 14px !important;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  .navbar-nav {
    gap: 4px !important;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  padding: 140px 0 100px;
  background: var(--white);
  background-image:
    radial-gradient(circle at 2px 2px, rgba(20, 184, 166, 0.12) 2px, transparent 2px);
  background-size: 35px 35px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-greeting {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
}

.hero-title {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 500;
  color: var(--mid);
  min-height: 2.2rem;
  line-height: 1.6;
}

.typed-accent { color: var(--accent); }

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
  margin-left: 1px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 480px;
}

/* Hero buttons */
.btn-primary-custom {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.25);
}
.btn-primary-custom:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.btn-primary-custom:active {
  transform: translateY(-1px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.15);
}
.btn-outline-custom:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost-custom {
  background: var(--light);
  color: var(--dark);
  border: 2px solid var(--border);
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  font-family: var(--font);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-ghost-custom:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  transform: translateY(-2px);
}

/* Small variants used in project cards */
.btn-sm.btn-primary-custom,
.btn-sm.btn-outline-custom,
.btn-sm.btn-ghost-custom {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* Hero socials */
.hero-socials a,
.contact-socials a,
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  color: var(--mid);
  font-size: 0.95rem;
  transition: var(--transition);
}
.hero-socials a:hover,
.contact-socials a:hover,
.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Profile image ---------- */
.profile-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .profile-wrapper { width: 240px; height: 240px; }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

/* Clothing colour overlay – tints lower half of the circle to accent blue */
.profile-wrapper::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  height: 52%;
  border-radius: 0 0 50% 50%;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: 0.5;
  z-index: 3;
  pointer-events: none;
  border: none;
}

.profile-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 3px dashed var(--accent);
  opacity: 0.4;
  animation: spin 18s linear infinite;
  z-index: 1;
}

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

.profile-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  z-index: 3;
}
.dot-1 { width: 18px; height: 18px; top: 12px; right: 12px; opacity: 0.7; }
.dot-2 { width: 12px; height: 12px; bottom: 20px; left: 10px; opacity: 0.5; }
.dot-3 { width: 8px;  height: 8px;  top: 50%;   left: -6px;  opacity: 0.4; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-img-frame {
  position: relative;
  width: 340px;
  max-width: 100%;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3/4;
}

.about-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-text {
  color: var(--mid);
  font-size: 0.93rem;
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.about-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
  height: 100%;
}

.about-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.about-info-card h6 {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.about-info-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
}

/* Progress bar skills */
.skill-item {
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateX(4px);
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.skill-percent {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.skill-progress {
  height: 12px;
  border-radius: 10px;
  background: var(--border);
  overflow: hidden;
  margin-top: 8px;
}

.skill-progress .progress-bar {
  background: var(--accent);
  border-radius: 10px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}

/* Skill cards */
.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.skill-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-card i {
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid);
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   PROJECTS
   ============================================================ */

/* Filter buttons */
.filter-btn {
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--mid);
  background: var(--white);
  font-family: var(--font);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Project cards */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--accent);
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img-wrap {
  background-color: #d0d0d0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-img,
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.project-card:hover .project-img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 110, 253, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.overlay-btn:hover {
  background: var(--dark);
  color: var(--white);
  transform: scale(1.1);
}

.project-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(13, 110, 253, 0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.python-badge {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.it-badge {
  background: rgba(253, 126, 20, 0.1);
  color: #fd7e14;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.65;
}

.tech-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--light);
  color: var(--mid);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* Hidden filtered items */
.project-item.hide {
  display: none !important;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Left edge accent */
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(20, 184, 166, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Decorative corner accent */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--accent);
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.service-card:hover .service-icon-wrap { background: var(--accent); }
.service-card:hover .service-icon-wrap i { color: var(--white); }

.service-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.service-icon-wrap i {
  font-size: 1.8rem;
  color: var(--accent);
  transition: var(--transition);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.contact-info-text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; }

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-item h6 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-item a,
.contact-detail-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  transition: var(--transition);
}

.contact-detail-item a:hover { color: var(--accent); }

/* ---- Featured Column Card ---- */
.column-card {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.column-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.column-image-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  flex-shrink: 0;
}

.column-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.column-source,
.column-title,
.column-excerpt,
.column-meta {
  padding-left: 2rem;
  padding-right: 2rem;
}

.column-source {
  padding-top: 2rem;
  padding-bottom: 0;
  display: block;
}

.column-meta {
  padding-bottom: 1rem;
}

.column-card .btn {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  margin-left: 2rem;
  margin-right: auto;
  width: auto;
  display: inline-block;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.9rem;
}

.column-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.column-source i { font-size: 0.9rem; }

.column-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.column-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.column-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.meta-author, .meta-category {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Contact form */
.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); }

.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.required-star { color: #dc3545; margin-left: 2px; }

.custom-input {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.custom-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
  outline: none;
}

.custom-input.is-invalid { border-color: #dc3545; }
.custom-input.is-valid   { border-color: #198754; }

.invalid-feedback {
  display: block;
  font-size: 0.78rem;
  color: #dc3545;
  margin-top: 4px;
  min-height: 16px;
}

.form-success-popup {
  display: flex;
  align-items: center;
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #a3cfbb;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeInUp 0.4s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 28px 0;
  color: #aaaaaa;
  position: relative;
  overflow: hidden;
}

/* Decorative top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(20, 184, 166, 0.5) 50%, var(--accent) 100%);
}

/* Background pattern */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(20, 184, 166, 0.03) 10px, rgba(20, 184, 166, 0.03) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(20, 184, 166, 0.02) 10px, rgba(20, 184, 166, 0.02) 20px);
  pointer-events: none;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.footer-socials a {
  border-color: rgba(255,255,255,0.2);
  color: #aaaaaa;
}

.footer-socials a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.footer-copy {
  font-size: 0.82rem;
  color: #888;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Staggered animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

/* Prevent any horizontal overflow */
html, body { overflow-x: hidden; }

/* ---- Tablet / Large Mobile (≤ 991px) ---- */
@media (max-width: 991px) {
  .section-pad { padding: 70px 0; }

  /* Hero — remove full-screen lock so it shrinks to content */
  .hero-section { min-height: auto; padding: 100px 0 60px; }
  .hero-section .row { --bs-gutter-y: 2rem; }
  .hero-text { text-align: center; }
  .hero-bio { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-text .btn-primary-custom,
  .hero-text .btn-outline-custom,
  .hero-text .btn-ghost-custom { min-width: 160px; }

  /* Reduce gy-5 row gaps across all sections */
  .row.gy-5 { --bs-gutter-y: 2.5rem; }

  /* About */
  .about-text { text-align: left; }
  .about-img-frame { margin: 0 auto; }
  .about-cta { justify-content: center; }

  /* Contact */
  .contact-form { padding: 24px; }
  .contact-info-title { text-align: center; }
  .contact-info-text { text-align: center; }
  .contact-details { align-items: center; max-width: 360px; margin-left: auto; margin-right: auto; }
  .contact-detail-item { width: 100%; }
  .contact-socials { justify-content: center; }

  /* Footer */
  .footer .col-md-4 { text-align: center !important; }
  .footer-brand { justify-content: center; }
}

/* ---- Mobile (≤ 767px) ---- */
@media (max-width: 767px) {
  .section-pad { padding: 56px 0; }

  /* Hero */
  .hero-section { padding: 90px 0 50px; }
  .hero-section .row { --bs-gutter-y: 1.75rem; }
  .row.gy-5 { --bs-gutter-y: 2rem; }
  .profile-wrapper { width: 220px; height: 220px; }
  .profile-ring   { inset: -8px; }
  .profile-ring-2 { display: none; }  /* hide outer ring on mobile */

  /* About */
  .about-img-frame { width: 100%; max-width: 300px; }
  .about-img { aspect-ratio: 4/3; }

  /* Skills */
  .skills-category-title { font-size: 1rem; }

  /* Projects — filter buttons wrap cleanly */
  .filter-btn { padding: 7px 16px; font-size: 0.82rem; }

  /* Services */
  .service-card { padding: 26px 18px 22px; }

  /* Contact */
  .contact-form { padding: 20px 16px; }

  /* Section header */
  .section-header { margin-bottom: 2rem; }
}

/* ---- Small Mobile (≤ 576px) ---- */
@media (max-width: 576px) {
  .section-pad { padding: 48px 0; }

  /* Navbar */
  #mainNavbar { padding: 10px 0; }
  .brand-logo { height: 36px; width: 115px; }

  /* Hero */
  .hero-section { padding: 88px 0 44px; }
  .hero-greeting { font-size: 0.85rem; letter-spacing: 1.5px; }
  .hero-name { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .hero-title { font-size: clamp(0.95rem, 4vw, 1.2rem); }
  .hero-bio { font-size: 0.88rem; }
  .profile-wrapper { width: 200px; height: 200px; }
  .profile-ring   { inset: -5px; }
  .dot-1 { width: 12px; height: 12px; }
  .dot-2 { width: 8px;  height: 8px; }
  .dot-3 { display: none; }
  .hero-section .row { --bs-gutter-y: 1.25rem; }
  .row.gy-5 { --bs-gutter-y: 1.5rem; }
  .contact-details { max-width: 280px; }

  /* Project & service cards — tighten text on small phones */
  .project-body { padding: 14px; }
  .project-title { font-size: 0.88rem; }
  .project-desc  { font-size: 0.78rem; }
  .project-tech  { gap: 4px !important; }
  .tech-badge    { font-size: 0.68rem; padding: 2px 7px; }
  .service-card  { padding: 18px 10px 14px; }
  .service-title { font-size: 0.85rem; }
  .service-desc  { font-size: 0.76rem; }

  /* Hero buttons — stack full width */
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom,
  .hero-buttons .btn-ghost-custom {
    width: 100%; max-width: 290px;
    text-align: center; justify-content: center;
    display: flex;
  }

  /* Section headers */
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-label { font-size: 0.72rem; letter-spacing: 2px; }

  /* About */
  .about-subtitle { font-size: 1.05rem; }
  .about-img-frame { max-width: 260px; }
  .about-img { aspect-ratio: 1/1; }
  .about-info-card { padding: 12px 10px; gap: 10px; }
  .about-info-card h6 { font-size: 0.78rem; }
  .about-info-card p  { font-size: 0.78rem; }

  /* Skills cards — 2 per row on narrow screens */
  .skill-card { padding: 16px 8px 12px; }
  .skill-card i { font-size: 1.5rem; }
  .skill-card p { font-size: 0.75rem; }

  /* Projects — filter buttons scroll horizontally */
  .d-flex.flex-wrap.justify-content-center.gap-2.mb-5 {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .d-flex.flex-wrap.justify-content-center.gap-2.mb-5::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Services */
  .service-card { padding: 22px 16px 18px; }
  .service-icon-wrap { width: 58px; height: 58px; }
  .service-icon-wrap i { font-size: 1.45rem; }
  .service-title { font-size: 0.92rem; }
  .service-desc  { font-size: 0.8rem; }

  /* Contact */
  .contact-form { padding: 18px 14px; }
  .contact-info-title { font-size: 1.15rem; }
  .contact-detail-icon { width: 38px; height: 38px; font-size: 0.88rem; }
  .custom-input { padding: 10px 12px; font-size: 0.85rem; }

  /* Footer */
  .footer { padding: 22px 0; }
  .footer-copy { font-size: 0.78rem; }
  .footer-socials a { width: 36px; height: 36px; font-size: 0.88rem; }

  /* FAB & back-to-top */
  .whatsapp-fab { right: 14px; bottom: 72px; width: 46px; height: 46px; font-size: 1.35rem; }
  .back-to-top  { right: 14px; bottom: 18px; width: 40px; height: 40px; }
}

/* ---- Very small phones (≤ 400px) ---- */
@media (max-width: 400px) {
  .hero-name { font-size: 1.7rem; }
  .profile-wrapper { width: 175px; height: 175px; }
  .about-img-frame { max-width: 230px; }
  .filter-btn { padding: 6px 12px; font-size: 0.78rem; }
  .project-title { font-size: 0.92rem; }
  .contact-form .row.g-3 { --bs-gutter-y: 0.6rem; }
}

/* ============================================================
   DOODLE BACKGROUNDS — Enhanced Visibility
   ============================================================ */

/* ============================================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================================ */

/* ---- Hero entrance sequence ---- */
.hero-greeting  { animation: hero-seq 0.7s ease both; animation-delay: 0.1s; }
.hero-name      { animation: hero-seq 0.7s ease both; animation-delay: 0.25s; }
.hero-title     { animation: hero-seq 0.7s ease both; animation-delay: 0.4s; }
.hero-bio       { animation: hero-seq 0.7s ease both; animation-delay: 0.55s; }
.hero-buttons   { animation: hero-seq 0.7s ease both; animation-delay: 0.7s; }
.hero-socials   { animation: hero-seq 0.7s ease both; animation-delay: 0.85s; }

@keyframes hero-seq {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Button shimmer sweep ---- */
.btn-primary-custom,
.btn-outline-custom {
  position: relative;
  overflow: hidden;
}
.btn-primary-custom::before,
.btn-outline-custom::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}
.btn-primary-custom:hover::before,
.btn-outline-custom:hover::before {
  animation: btn-shimmer 0.55s ease forwards;
}
@keyframes btn-shimmer {
  to { left: 130%; }
}

/* ---- Button ripple ---- */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ---- Skill progress bar shimmer ---- */
.skill-progress .progress-bar {
  background: var(--accent);
  border-radius: 10px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.skill-progress .progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.32) 50%, transparent 100%);
  animation: bar-shimmer 2.2s ease-in-out infinite 1.5s;
}
@keyframes bar-shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ---- Card tilt glow on hover ---- */
.project-card,
.service-card,
.skill-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover  { box-shadow: 0 16px 48px rgba(13,110,253,0.14); }
.service-card:hover  { box-shadow: 0 16px 48px rgba(13,110,253,0.12); }
.skill-card:hover    { box-shadow: 0 8px 28px rgba(13,110,253,0.14); }

/* ---- About info cards pop ---- */
.about-info-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.about-info-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(13,110,253,0.12);
}

/* ---- Nav link underline morph ---- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ---- Section label slide-in badge ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  position: relative;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-label::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ---- Contact detail icon pulse ---- */
.contact-detail-icon {
  transition: transform 0.25s ease, background 0.25s ease;
}
.contact-detail-item:hover .contact-detail-icon {
  background: var(--accent);
  color: var(--white) !important;
  transform: scale(1.12) rotate(-6deg);
}
.contact-detail-item:hover .contact-detail-icon i {
  color: var(--white);
}

/* ---- Social icon magnetic bounce ---- */
.hero-socials a,
.contact-socials a,
.footer-socials a {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hero-socials a:hover,
.contact-socials a:hover,
.footer-socials a:hover {
  transform: translateY(-5px) scale(1.12);
}

/* ---- Scroll reveal — staggered cubic ease ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ---- Profile ring second orbit ---- */
.profile-ring-2 {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  border: 1.5px solid rgba(13,110,253,0.18);
  animation: spin-reverse 28s linear infinite;
  z-index: 1;
}
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* ---- Floating stat badges on hero ---- */
.hero-stat {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  animation: stat-float 4s ease-in-out infinite;
}
.hero-stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(13,110,253,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
}
.hero-stat.stat-projects {
  bottom: 18%; right: -14px;
  animation-delay: 0s;
}
.hero-stat.stat-exp {
  top: 14%; left: -14px;
  animation-delay: 2s;
}
@keyframes stat-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@media (max-width: 991px) {
  .hero-stat { display: none; }
}

/* ---- Mobile hero stats strip ---- */
.hero-stats-strip {
  align-items: center;
  gap: 0;
  background: rgba(13,110,253,0.05);
  border: 1px solid rgba(13,110,253,0.15);
  border-radius: 14px;
  padding: 14px 0;
  width: 100%;
  justify-content: center;
}
.hero-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.hero-strip-value {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}
.hero-strip-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-strip-plus {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
}
.hero-strip-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
}
.hero-strip-divider {
  width: 1px;
  height: 40px;
  background: rgba(13,110,253,0.2);
  flex-shrink: 0;
}

/* ---- Back to top pulse ring ---- */
.back-to-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: btt-pulse 2.4s ease-out infinite;
}
@keyframes btt-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---- Page loader ---- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  background-image:
    linear-gradient(45deg, rgba(20, 184, 166, 0.1) 25%, transparent 25%, transparent 75%, rgba(20, 184, 166, 0.1) 75%, rgba(20, 184, 166, 0.1)),
    linear-gradient(45deg, rgba(20, 184, 166, 0.1) 25%, transparent 25%, transparent 75%, rgba(20, 184, 166, 0.1) 75%, rgba(20, 184, 166, 0.1));
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  animation: spin-loader 0.75s linear infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo {
  width: 32px;
  height: 32px;
  position: absolute;
  object-fit: contain;
}
@keyframes spin-loader { to { transform: rotate(360deg); } }

/* ---- Counter number roll ---- */
.counter-num {
  display: inline-block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* ---- Title underline animate ---- */
.title-underline {
  width: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin: 0.8rem auto 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.reveal-up.visible ~ .title-underline,
.section-header.visible .title-underline,
.title-underline.active {
  width: 55px;
}

/* ---- Project card shine ---- */
.project-img-wrap::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 30%; height: 200%;
  background: rgba(255,255,255,0.12);
  transform: skewX(-20deg);
  opacity: 0;
  transition: opacity 0.1s;
  pointer-events: none;
}
.project-card:hover .project-img-wrap::after {
  opacity: 1;
  animation: card-shine 0.55s ease forwards;
}
@keyframes card-shine {
  to { left: 130%; }
}

/* ============================================================
   WOW FACTOR ANIMATIONS
   ============================================================ */

/* Smooth fade-in entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale entrance */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Blur fade entrance */
@keyframes blurFadeIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Smooth slide-in from sides */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Subtle float effect */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Smooth underline reveal */
@keyframes underlineReveal {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    counter-increment: none;
  }
  to {
    opacity: 1;
  }
}

/* Subtle pulsing glow */
@keyframes softGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
  }
}

/* Smooth color transition */
@keyframes colorShift {
  0% { color: var(--muted); }
  100% { color: var(--dark); }
}
