/* ==========================================================================
   AKSHAY KOTECHA - SENIOR FULL-STACK DEVELOPER & CLOUD ARCHITECT
   Design System: Inspired by Keyfy Real Estate (https://keravanadkat.com/realestate/)
   Palette: Forest Emerald, Deep Teal, Midnight Navy & Soothing Slate
   Typography: Outfit (Headings) & Plus Jakarta Sans (Body)
   ========================================================================== */

/* --- Google Fonts & Custom Properties --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Keyfy Brand Core Colors (From Real Estate Project) */
  --kf-navy-900: #0b1528;
  --kf-navy-800: #101e38;
  --kf-navy-700: #182b4d;
  --kf-navy-600: #233c66;
  --kf-navy-50: #f1f5f9;
  
  /* Green / Teal Theme (Primary Accent - Calm, Soothing & Executive) */
  --kf-blue-600: #0a66c2;
  --kf-blue-500: #0284c7;
  --kf-blue-400: #0ea5e9;
  --kf-blue-100: #e0f2fe;
  --kf-blue-50: #f0f7ff;

  /* Theme mappings */
  --color-primary: #0a66c2;
  --color-primary-dark: #00558b;
  --color-primary-light: #f0f7ff;
  --color-primary-rgb: 10, 102, 194;
  
  --color-accent: #0284c7;
  --color-accent-hover: #0a66c2;
  --color-accent-light: #e0f2fe;
  --color-accent-gradient: linear-gradient(135deg, #00558b 0%, #0284c7 100%);
  --color-accent-gradient-hover: linear-gradient(135deg, #003e68 0%, #0a66c2 100%);

  /* Neutrals */
  --kf-dark: #0f172a;
  --kf-text: #334155;
  --kf-muted: #64748b;
  --kf-light-muted: #94a3b8;
  --kf-border: #e2e8f0;
  --kf-bg-subtle: #f8fafc;
  --kf-white: #ffffff;

  --color-heading: #0b1528;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-bg: #fcfdfe;
  --color-bg-white: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-card-bg: #ffffff;
  --color-card-border: #e2e8f0;
  --color-card-hover-border: #bfdbfe;

  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Shadows (Natural, Soothing, Zero harsh color glow) */
  --kf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --kf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --kf-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --kf-shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --kf-shadow-glow-blue: 0 10px 30px -5px rgba(10, 102, 194, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: scroll;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 85px;
}

body {
  font-family: var(--font-secondary);
  color: var(--kf-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: clip;
  overflow-y: visible !important;
  width: 100%;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  color: var(--kf-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-gap {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Typography Helpers & Section Tags */
.text-primary-gradient {
  background: linear-gradient(135deg, #0b1528 0%, #0a66c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header-center,
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-tag,
.section-subtitle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-tag-green,
.section-subtitle-pill {
  background: #f0f7ff;
  color: #0a66c2;
  border: 1px solid #bfdbfe;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle,
.section-description {
  font-size: 1.02rem;
  color: var(--kf-muted);
  line-height: 1.6;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00558b 0%, #0284c7 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.45);
  color: #ffffff !important;
}

.btn-outline {
  background: #ffffff;
  color: var(--kf-navy-900);
  border: 1.5px solid var(--kf-border);
  box-shadow: var(--kf-shadow-sm);
}

.btn-outline:hover {
  background: #f0f7ff;
  color: #0a66c2;
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: var(--kf-shadow-md);
}

.btn-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.btn-pill:hover .btn-icon-circle {
  transform: translateX(3px);
}

/* ==========================================================================
   Top Contact Bar & Main Navigation (Keyfy Real Estate Design)
   ========================================================================== */
.topbar {
  background: var(--kf-navy-900);
  color: #94a3b8;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1030;
}

.topbar a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
}

.topbar a:hover {
  color: var(--kf-blue-400);
}

.topbar i {
  margin-right: 8px;
  display: inline-block;
}

.topbar-badge {
  background: rgba(10, 102, 194, 0.15);
  color: var(--kf-blue-400);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(10, 102, 194, 0.3);
  display: inline-flex;
  align-items: center;
}

.topbar-badge i {
  margin-right: 6px;
}

.topbar-content-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Main Navigation Bar */
.navbar-keyfy {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--transition-smooth);
}

.navbar-keyfy.scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 12px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0a66c2 0%, #0284c7 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
  flex-shrink: 0;
}

.brand-text-content {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--kf-navy-900);
  letter-spacing: 0.5px;
}

.brand-name .brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00558b;
  letter-spacing: 0.8px;
  margin-left: 3px;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: #0a66c2;
  letter-spacing: 0.3px;
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav Menu Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-keyfy .nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.navbar-keyfy .nav-link:hover,
.navbar-keyfy .nav-link.active {
  color: var(--kf-navy-900);
}

.navbar-keyfy .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 6px;
  right: 6px;
  height: 2.5px;
  background: var(--kf-blue-500);
  border-radius: var(--radius-pill);
}

/* Nav Pill Button */
.btn-nav-login {
  background: linear-gradient(135deg, #00558b 0%, #0284c7 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.btn-nav-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.45);
  color: #ffffff !important;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--kf-navy-900);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--kf-navy-900);
  padding: 8px 0;
  border-bottom: 1px solid var(--kf-border);
}

.mobile-nav-footer {
  padding-top: 20px;
}

/* ==========================================================================
   Hero Section (Matching https://keravanadkat.com/realestate/ Mockup)
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(186, 230, 253, 0.20) 0%, rgba(224, 242, 254, 0.12) 45%, #ffffff 85%);
  padding: 38px 0 54px;
  overflow: hidden;
}

#hero-live-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-main-row {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
}

/* Left Hero Content */
.hero-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f7ff;
  color: #00558b;
  border: 1px solid #bfdbfe;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.1);
}

.hero-welcome-badge i {
  color: var(--kf-blue-600);
}

.hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(2.1rem, 3.1vw, 2.85rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--kf-navy-900);
  margin-bottom: 12px;
  word-break: normal;
  overflow-wrap: normal;
}

/* Bottom-to-Top Sliding Text Styles (Matching https://keravanadkat.com/) */
.cd-headline.slide {
  display: inline-block;
  vertical-align: bottom;
  position: relative;
  max-width: 100%;
}

.cd-headline.slide .cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
  overflow: hidden;
  vertical-align: bottom;
  min-height: 1.25em;
  transition: width 0.35s ease;
  max-width: 100% !important;
}

.cd-headline.slide b {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  left: 0;
  top: 0;
  opacity: 0;
  font-family: var(--font-primary);
  font-weight: 800;
  transform: translateY(100%);
  pointer-events: none;
}

.cd-headline.slide b.is-visible {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  animation: slide-in 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: auto;
}

.cd-headline.slide b.is-hidden {
  position: absolute;
  opacity: 0;
  transform: translateY(-100%);
  animation: slide-out 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: none;
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  60% {
    opacity: 1;
    transform: translateY(-6%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 0;
    transform: translateY(-110%);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.hero-subtagline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #00558b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtagline::before,
.hero-subtagline::after {
  content: '';
  height: 2px;
  width: 24px;
  background: #0284c7;
  display: inline-block;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 22px;
}

/* 4 Trust Feature Badges Grid */
.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.trust-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--kf-border);
  box-shadow: var(--kf-shadow-sm);
  transition: var(--transition-fast);
}

.trust-feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--kf-shadow-md);
  border-color: #bfdbfe;
}

.trust-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 8px;
  background: #f0f7ff;
  color: var(--kf-blue-600);
}

.trust-feature-item:nth-child(2) .trust-icon-wrap {
  background: #eff6ff;
  color: #2563eb;
}

.trust-feature-item:nth-child(3) .trust-icon-wrap {
  background: #ecfeff;
  color: #0891b2;
}

.trust-feature-item:nth-child(4) .trust-icon-wrap {
  background: #fff7ed;
  color: #ea580c;
}

.trust-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--kf-navy-900);
  line-height: 1.25;
  white-space: nowrap;
}

/* Right Hero Image Visual */
.hero-image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.22);
  border: 4px solid #ffffff;
  background: #ffffff;
}

.hero-image-container img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.hero-image-container:hover img {
  transform: scale(1.03);
}

.hero-live-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.hero-live-badge .pulse-dot {
  width: 10px;
  height: 10px;
  background: #0284c7;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.7);
  animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(10, 102, 194, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(10, 102, 194, 0); }
}

.hero-float-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-float-avatar-group {
  display: flex;
}

.hero-float-avatar-group img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
}
.hero-float-avatar-group img:first-child {
  margin-left: 0;
}

.hero-float-text {
  font-size: 0.8rem;
  color: var(--kf-dark);
  font-weight: 700;
  line-height: 1.2;
}
.hero-float-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--kf-muted);
  font-weight: 500;
}

/* ==========================================================================
   Hero Executive Engineering Statement Card (Clean Corporate Highlight)
   ========================================================================== */
.hero-statement-wrapper {
  margin-top: 8px;
  position: relative;
  z-index: 20;
}

.hero-statement-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.hero-statement-card:hover {
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.12), 0 0 0 1.5px #bfdbfe;
  transform: translateY(-2px);
}

.hero-statement-content {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-statement-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a66c2 0%, #0284c7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3);
}

.hero-statement-text {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #1e293b;
  font-weight: 500;
  margin: 0;
}

.hero-statement-text .highlight {
  color: #00558b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #0ea5e9;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .hero-statement-card {
    padding: 18px 20px;
  }
  .hero-statement-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .hero-statement-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ==========================================================================
   Services Section (Matching Real Estate Role Cards)
   ========================================================================== */
.latest-service-area {
  background: var(--kf-bg-subtle);
  border-top: 1px solid var(--kf-border);
  border-bottom: 1px solid var(--kf-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.service-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  padding: 38px 26px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--kf-shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0a66c2, #0284c7);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kf-shadow-xl);
  border-color: #bfdbfe;
}

.service-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: 0.93rem;
  color: var(--kf-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==========================================================================
   Technology Stack / Skills Section (Category Cards Grid)
   ========================================================================== */
.counter-area {
  background: #ffffff;
}

.skills-tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.tab-btn,
.filter-pill {
  background: #f8fafc;
  color: #475569;
  border: 1.5px solid var(--kf-border);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover,
.filter-pill:hover {
  background: #e2e8f0;
  color: var(--kf-navy-900);
}

.tab-btn.active,
.filter-pill.active {
  background: linear-gradient(135deg, #00558b 0%, #0284c7 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.skill-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--kf-shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--kf-shadow-md);
  border-color: #bfdbfe;
}

.skill-source-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: #f0f7ff;
  color: #0a66c2;
  border: 1px solid #bfdbfe;
}

.skill-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: var(--transition-fast);
}

.skill-icon-wrap img,
.skill-icon-wrap svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.skill-card:hover .skill-icon-wrap {
  background: #f0f7ff;
  transform: scale(1.1);
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--kf-navy-900);
  margin-bottom: 4px;
}

.skill-category-badge {
  font-size: 0.74rem;
  color: var(--kf-muted);
  font-weight: 500;
}

/* ==========================================================================
   Portfolio Projects Section (Property Cards Style)
   ========================================================================== */
.tmp-portfolio-area {
  background: var(--kf-bg-subtle);
  border-top: 1px solid var(--kf-border);
  border-bottom: 1px solid var(--kf-border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--kf-shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--kf-shadow-xl);
  border-color: #bfdbfe;
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  border-bottom: 1px solid var(--kf-border);
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-wrap img {
  transform: scale(1.05) translateZ(0);
}

.project-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.project-content {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--kf-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
}

.project-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.project-view-btn {
  background: #f0f7ff;
  color: #00558b;
  border: 1px solid #bfdbfe;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.project-view-btn:hover {
  background: #e0f2fe;
  border-color: #bfdbfe;
  color: #0a66c2;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.15);
}

.project-live-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--kf-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-live-link:hover {
  color: var(--kf-navy-900);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.education-experience {
  background: #ffffff;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.timeline-column-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-column-title i {
  color: var(--kf-blue-600);
}

.timeline-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--kf-shadow-md);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kf-shadow-xl);
  border-color: #bfdbfe;
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.timeline-company {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a66c2;
}

.timeline-date-badge {
  background: #f0f7ff !important;
  color: #00558b !important;
  border: 1.5px solid #bfdbfe !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--kf-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--kf-text);
  line-height: 1.55;
}

.timeline-bullet-item i {
  color: var(--kf-blue-600);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Experience Image Visual Card */
.experience-image-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--kf-shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.experience-img-container {
  position: relative;
  flex-grow: 1;
  min-height: 440px;
  overflow: hidden;
}

.experience-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-image-card:hover .experience-showcase-img {
  transform: scale(1.03);
}

.experience-img-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(11, 21, 40, 0.88);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
}

.exp-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a66c2 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.experience-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--kf-border);
  text-align: center;
}

.exp-stat-val {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  display: block;
}

.exp-stat-txt {
  font-size: 0.74rem;
  color: var(--kf-muted);
  font-weight: 600;
}

/* ==========================================================================
   Industry & Domain Showcase (Exact 4x2 Grid Matching User Reference Image)
   ========================================================================== */
.industry-domains-section {
  margin-top: 55px;
  padding-top: 50px;
  border-top: 1.5px solid var(--kf-border);
}

.industry-grid-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--kf-shadow-md);
  margin-top: 10px;
}

.industry-box-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 38px 24px;
  background: #ffffff;
  border-right: 1.5px solid #e2e8f0;
  border-bottom: 1.5px solid #e2e8f0;
  transition: var(--transition-fast);
  cursor: default;
  position: relative;
}

/* 4-column layout borders */
.industry-box-item:nth-child(4n) {
  border-right: none;
}

.industry-box-item:nth-child(n+5) {
  border-bottom: none;
}

.industry-box-item:hover {
  background: #f8fafc;
}

.industry-box-item:hover .industry-icon-wrap {
  transform: translateY(-2px) scale(1.06);
}

.industry-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-icon-wrap svg {
  width: 44px;
  height: 44px;
  display: block;
}

.industry-box-title {
  font-family: var(--font-primary);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--kf-navy-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Exact Reference Image Colors */
.industry-box-item:nth-child(1) .industry-box-title { color: #1e5b88; }
.industry-box-item:nth-child(2) .industry-box-title { color: #2a8f88; }
.industry-box-item:nth-child(3) .industry-box-title { color: #475569; }
.industry-box-item:nth-child(4) .industry-box-title { color: #0b2546; }
.industry-box-item:nth-child(5) .industry-box-title { color: #475569; font-size: 1.12rem; }
.industry-box-item:nth-child(6) .industry-box-title { color: #0b2546; }
.industry-box-item:nth-child(7) .industry-box-title { color: #0b2546; }
.industry-box-item:nth-child(8) .industry-box-title { color: #1e293b; }


/* ==========================================================================
   Engagement Models (Screenshot 1 Matching with Real Estate Emerald)
   ========================================================================== */
.our-price-plan-area {
  background: var(--kf-bg-subtle);
  border-top: 1px solid var(--kf-border);
  border-bottom: 1px solid var(--kf-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px 30px;
  box-shadow: var(--kf-shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--kf-shadow-xl);
  border-color: #bfdbfe;
}

.pricing-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.92rem;
  color: var(--kf-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--kf-text);
  font-weight: 500;
}

.pricing-feature-item i {
  color: var(--kf-blue-600);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-card-outline {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--kf-border);
  background: #ffffff;
  color: var(--kf-navy-900);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-outline:hover {
  background: #f0f7ff;
  color: #00558b;
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.btn-card-solid {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: linear-gradient(135deg, #00558b 0%, #0284c7 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
  transition: var(--transition-fast);
}

.btn-card-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.45);
}

/* ==========================================================================
   Testimonials Slider Section
   ========================================================================== */
.slider-nav-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  color: #0a66c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.slider-nav-btn:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3);
}

.testimonials-slider-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: paint;
  padding: 10px 4px 24px;
  cursor: grab;
}

.testimonials-slider-viewport:active {
  cursor: grabbing;
}

.testimonials-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 cards per view on desktop */
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

.testimonial-slide .testimonial-card {
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 cards on tablet */
  }
}

@media (max-width: 640px) {
  .testimonial-slide {
    flex: 0 0 100%; /* 1 card on mobile */
  }
}

.testimonials-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: #0a66c2;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.35);
}

.testimonial-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow: var(--kf-shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kf-shadow-xl);
  border-color: #bfdbfe;
}

.testimonial-quote-icon {
  font-size: 1.8rem;
  color: #0284c7;
  opacity: 0.3;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.94rem;
  color: var(--kf-text);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f7ff;
  color: #0a66c2;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid #bfdbfe;
}

.author-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--kf-navy-900);
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.78rem;
  color: var(--kf-muted);
}

/* ==========================================================================
   Contact & Consultation Section
   ========================================================================== */
.get-in-touch-area {
  background: var(--kf-bg-subtle);
  border-top: 1px solid var(--kf-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

.contact-info-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--kf-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 12px;
}

.contact-info-desc {
  font-size: 0.94rem;
  color: var(--kf-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0f7ff;
  color: #0a66c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.contact-method-text h5 {
  font-size: 0.8rem;
  color: var(--kf-muted);
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.contact-method-text a,
.contact-method-text span {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--kf-navy-900);
}

.contact-method-text a:hover {
  color: #0a66c2;
}

.social-links-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid var(--kf-border);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: #f0f7ff;
  color: #0a66c2;
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--kf-shadow-md);
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--kf-navy-900);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--kf-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kf-navy-900);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid var(--kf-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--kf-dark);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--kf-blue-500);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.form-status-msg {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.form-status-msg.success {
  display: block;
  background: #f0f7ff;
  color: #00558b;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Footer Section (Matching Real Estate Dark Navy Footer)
   ========================================================================== */
.footer-section {
  background: var(--kf-navy-900);
  color: #94a3b8;
  padding: 60px 0 24px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0a66c2 0%, #0284c7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 800;
  margin: 0;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: #cbd5e1;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--kf-blue-400);
  transform: translateX(3px);
}

.footer-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-tech-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 21, 40, 0.7);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--kf-shadow-xl);
}

.modal-project-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--kf-border);
  box-shadow: var(--kf-shadow-md);
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--kf-navy-900);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ==========================================================================
   Floating Bottom Right Controls
   ========================================================================== */

/* Wrapper removed — each button is independently positioned */
.floating-bottom-controls {
  /* No layout control here; children use their own position: fixed */
}

/* WhatsApp Floating Button — starts at very bottom, slides UP when arrow appears */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;   /* default: at the very bottom */
  right: 24px;
  z-index: 1050;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* Include bottom in transition so it slides smoothly upward */
  transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.2s ease, box-shadow 0.2s ease;
  animation: waPulse 2.5s infinite;
}

/* When arrow is visible, WhatsApp slides up to make room below */
.floating-whatsapp-btn.shifted {
  bottom: 82px; /* 24 + 46 + 12 gap = 82 */
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7); }
}

/* Scroll-to-Top Button with Water Liquid Fill Effect (No border, rising liquid) */
.floating-back-to-top {
  position: fixed;
  bottom: 24px;  /* at the very bottom — below WhatsApp */
  right: 26px;   /* centered under WhatsApp */
  z-index: 1050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0b1528; /* Deep rich navy/black base matching user reference */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  border: none;
  outline: none;
  cursor: pointer;
  overflow: hidden; /* Perfectly clips the rising water fill inside the circle */
  /* Hidden off-screen below — slides up into place */
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* Rising Liquid Water Fill Layer */
.water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Dynamically updated via JS based on scroll progress */
  background: #0a66c2; /* Executive blue liquid */
  pointer-events: none;
  z-index: 1;
  transition: height 0.12s ease-out;
}

/* Water Surface Animated Wave */
.water-wave {
  position: absolute;
  top: -5px;
  left: 0;
  width: 200%;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 8' preserveAspectRatio='none'%3E%3Cpath d='M0,4 C12,8 24,0 36,4 C42,6 45,5 48,4 L48,8 L0,8 Z' fill='%230a66c2'/%3E%3C/svg%3E");
  background-size: 48px 6px;
  background-repeat: repeat-x;
  animation: waterWaveAnim 2.2s linear infinite;
  pointer-events: none;
}

@keyframes waterWaveAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-48px); }
}

/* Arrow Icon always on top */
.floating-back-to-top i {
  position: relative;
  z-index: 5;
  color: #ffffff;
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Slides UP from below into position under WhatsApp */
.floating-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(10, 102, 194, 0.5);
}

.floating-back-to-top:hover i {
  transform: translateY(-2px);
}

/* Footer Contact Action Icons (moved from right floating bar) */
/* Footer Contact Action Icons — dark rounded square style */
.footer-contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;                        /* rounded square, not circle */
  background: #1a2333;                        /* dark card bg */
  border: 1.5px solid rgba(255,255,255,0.08); /* subtle border like screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  color: #94a3b8;                             /* muted icon color by default */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
              background 0.22s ease, color 0.22s ease,
              border-color 0.22s ease;
}

/* On hover: lift + glow + brand color icon */
.footer-action-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.footer-action-icon.item-whatsapp {
  color: #25D366;
}
.footer-action-icon.item-whatsapp:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.footer-action-icon.item-phone {
  color: #0a66c2;
}
.footer-action-icon.item-phone:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.4);
}

.footer-action-icon.item-email {
  color: #60a5fa;
}
.footer-action-icon.item-email:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.footer-action-icon.item-calendar {
  color: #0284c7;
}
.footer-action-icon.item-calendar:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.4);
}

.footer-action-icon.item-linkedin {
  color: #0077b5;
}
.footer-action-icon.item-linkedin:hover {
  background: #0077b5;
  color: #ffffff;
  border-color: #0077b5;
  box-shadow: 0 6px 18px rgba(0, 119, 181, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-main-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image-container img {
    height: 320px;
  }

  .search-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .projects-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .industry-grid-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-box-item:nth-child(4n) {
    border-right: 1.5px solid #e2e8f0;
  }

  .industry-box-item:nth-child(2n) {
    border-right: none;
  }

  .industry-box-item:nth-child(n+5) {
    border-bottom: 1.5px solid #e2e8f0;
  }

  .industry-box-item:nth-child(n+7) {
    border-bottom: none;
  }
}

.contact-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden !important;
  }
  body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100% !important;
  }

  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    display: none;
  }

  .d-none-mobile {
    display: none !important;
  }

  .navbar-toggler {
    display: block;
  }

  .hero-main-row {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .hero-main-row > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero-welcome-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0 auto 12px;
    display: inline-flex;
  }

  .hero-headline {
    font-size: clamp(1.35rem, 5.2vw, 1.72rem);
    line-height: 1.28;
    word-break: normal;
    overflow-wrap: normal;
    max-width: 100%;
    text-align: center;
    margin: 0 auto 12px;
  }

  .cd-headline.slide {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px auto 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    contain: paint;
  }

  .cd-headline.slide .cd-words-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    overflow: hidden !important;
    min-height: 1.35em !important;
    height: 1.35em !important;
    line-height: 1.35em !important;
    position: relative !important;
    transition: none !important;
  }

  .cd-headline.slide b {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
    line-height: 1.35em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .cd-headline.slide b.is-visible {
    position: absolute !important;
    top: 0 !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .cd-headline.slide b.is-hidden {
    position: absolute !important;
    top: 0 !important;
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    pointer-events: none !important;
  }

  .hero-subtagline {
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.4;
    margin: 0 auto 12px;
    text-align: center;
  }

  .hero-subtagline::before,
  .hero-subtagline::after {
    display: none !important;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 auto 20px;
    text-align: center;
    max-width: 100%;
  }

  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  .trust-feature-item {
    padding: 12px 6px;
    min-width: 0;
  }

  .trust-label {
    white-space: normal;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .hero-image-container {
    max-width: 460px;
    margin: 0 auto;
  }

  .hero-image-container img {
    height: 250px;
    object-position: center;
  }

  .hero-statement-card {
    padding: 20px 18px;
  }

  .hero-statement-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-statement-text {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .timeline-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timeline-date-badge {
    align-self: flex-start;
  }

  /* Contact & Form Section Mobile Safety */
  .get-in-touch-area {
    overflow: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    contain: paint;
  }

  .contact-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .contact-form-card,
  .contact-info-card,
  .timeline-card {
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  .contact-methods-list,
  .contact-method-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-method-text {
    min-width: 0 !important;
    max-width: calc(100% - 64px) !important;
    overflow: hidden !important;
  }

  .contact-method-text a,
  .contact-method-text span {
    display: block !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  #contactForm {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .form-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .search-form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .floating-right-bar {
    display: none;
  }

  .industry-box-item {
    padding: 24px 16px;
    gap: 12px;
  }

  .industry-box-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-headline {
    font-size: 1.55rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid-card {
    grid-template-columns: 1fr;
  }

  .industry-box-item {
    border-right: none !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    justify-content: flex-start;
    padding: 18px 24px;
  }

  .industry-box-item:last-child {
    border-bottom: none !important;
  }

  .contact-form-card,
  .contact-info-card,
  .timeline-card {
    padding: 20px 14px !important;
  }
}

@media (max-width: 991px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"],
  [data-aos="fade-up-left"],
  [data-aos="fade-up-right"],
  [data-aos="fade-down-left"],
  [data-aos="fade-down-right"] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Parsley Form Validation Styling
   ========================================================================== */
.form-input.parsley-error,
.form-textarea.parsley-error,
.form-select.parsley-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.form-input.parsley-success,
.form-textarea.parsley-success,
.form-select.parsley-success {
  border-color: #0284c7 !important;
  background-color: #f0fdf4 !important;
}

.parsley-errors-list {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: parsleyFadeIn 0.25s ease-out;
}

.parsley-errors-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.parsley-errors-list li::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.82rem;
  color: #ef4444;
  flex-shrink: 0;
}

@keyframes parsleyFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Top-Right Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 35px -5px rgba(11, 21, 40, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 5px solid #0284c7;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
  overflow: hidden;
  position: relative;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.toast-success {
  border-left-color: #0284c7;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-info {
  border-left-color: #0a66c2;
}

.toast-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  color: #0284c7;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info .toast-icon {
  color: #0a66c2;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 3px;
}

.toast-message {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.45;
}

.toast-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  line-height: 1;
  transition: color 0.2s ease;
}

.toast-close-btn:hover {
  color: #0f172a;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(10, 102, 194, 0.6);
  width: 100%;
  animation: toastProgress 5s linear forwards;
}

.toast-error .toast-progress {
  background: rgba(239, 68, 68, 0.6);
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}