/* WorthyTech Solutions - Custom CSS */
/* Color Variables: #2D466D primary, #333333 dark, #B0B8C1 accent */
:root {
  --primary-color: #2D466D;
  --primary-dark: #243d5a;
  --secondary-color: #B0B8C1;
  --accent-color: #B0B8C1;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #333333;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2D466D 0%, #7893b1 100%);
  --gradient-secondary: linear-gradient(135deg, #7893b1 0%, #2D466D 100%);
  --gradient-hero: linear-gradient(135deg, #333333 0%, #2D466D 100%);
  --gradient-dark: linear-gradient(135deg, #333333 0%, #2D466D 100%);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 15px;
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Hide scrollbar (keeps content scrollable) */
html {
    scrollbar-width: none; /* Firefox */
}
body {
    -ms-overflow-style: none; /* IE/Edge Legacy */
}
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Also hide scrollbars on any scrollable containers */
* {
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--light-color);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ===== NAVBAR SMOOTH SNAKE WAVE ===== */
.navbar {
  overflow: hidden; /* keeps wave clipped inside navbar */
}

.navbar-snake-svg {
  position: absolute;
  bottom: 0;          /* pinned to bottom only */
  left: 0;
  width: 100%;
  height: 28px;       /* wave lives in bottom 28px strip */
  pointer-events: none;
  z-index: 0;
}

/* Navbar content stays above wave */
.navbar .container {
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-color);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px; /* Use gap instead of negative margins for spacing */
  margin-left: 0;
}
.navbar-brand img,
.navbar-brand .navbar-logo {
  height: 45px; /* Scaled for both desktop and mobile */
  width: auto;
  object-fit: contain;
  margin: 0;
  display: block;
}

.navbar-brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0; /* Removed -39px */
  font-size: 1.5rem; /* Reduced base size to prevent overflow */
  font-weight: 800;
  min-width: 0; /* allow ellipsis when navbar row is tight */
}

/* Below lg: brand + hamburger share one row; opened menu still full width below */
@media (max-width: 991.98px) {
  .navbar > .container {
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-brand {
    max-width: calc(100% - 3.25rem);
    min-width: 0;
    flex: 1 1 auto;
  }

  .navbar-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    flex-shrink: 0;
  }
}

.navbar-nav .nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--gray-700) !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(
      circle at 20% 30%,
      rgba(45, 70, 109, 0.35),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(176, 184, 193, 0.2),
      transparent 60%
    ),
    linear-gradient(135deg, #333333 0%, #2D466D 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-bottom: 0;
  padding-top: 100px;   
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, #B0B8C1 0%, #ffffff 50%, #B0B8C1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-brand-wrapper {
  position: relative;
  display: inline-block;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-brand-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.floating-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay:-5s;
}

.floating-card:nth-child(3) {
  animation-delay: -6s;
}

.floating-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.floating-card h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Services Section Styling */
.service-slider-wrapper {
  position: relative;
  padding: 0 60px; /* space for arrows */
}

.service-slider {
  overflow: hidden; /* hide slides outside view */
  position: relative;
}

.service-slider-inner {
  display: flex;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.service-slide {
  flex: 0 0 calc(33.333% - 10px);
  margin-right: 10px;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .service-slide {
    flex: 0 0 calc(50% - 10px);
  }

  .service-slider-wrapper {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ✅ Arrow Buttons */
.service-prev,
.service-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-prev:hover,
.service-next:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(45, 70, 109, 0.35);
}

/* ✅ Left and Right Placement */
.service-prev { left: 0; }
.service-next { right: 0; }

.service-prev i,
.service-next i {
font-size: 18px;
line-height: 1;
}

/* ✅ Responsive Tweaks */
@media (max-width: 992px) {
.service-prev,
.service-next {
  width: 46px;
  height: 46px;
}
}

@media (max-width: 576px) {
.service-prev,
.service-next {
  width: 42px;
  height: 42px;
}
}

/* Mobile: full-width stacked cards instead of narrow carousel strips */
@media (max-width: 767.98px) {
  .services-section.services-home {
    overflow: visible; /* stacked cards: avoid clipping shadows */
  }

  .service-slider-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .service-slider {
    overflow: visible;
  }

  .service-slider-inner {
    flex-direction: column !important;
    transform: none !important;
    gap: 1.25rem;
    transition: none;
  }

  .service-slide {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100%;
    margin-right: 0 !important;
  }

  .service-slide.px-2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .service-prev,
  .service-next {
    display: none !important;
  }

  .services-section .service-card {
    text-align: left;
    padding: 1.5rem 1.25rem;
  }

  .services-section .service-title {
    text-align: left;
  }

  .services-section .service-description {
    text-align: left;
  }

  .services-section .service-icon {
    margin-left: 0;
    margin-right: auto;
  }

  .services-section .service-features ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
    text-align: left;
  }
}

.services-section {
  background: var(--white);
  color: var(--dark-color);
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px 0; /* Reduced top padding, kept bottom padding */
  margin-top: -0; /* Negative margin to pull section up */
}

/* Home: breathing room after full-height hero (pt-0 was removing this on index) */
.services-section.services-home {
  padding-top: clamp(2.75rem, 7vw, 4rem);
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 70, 109, 0.05) 0%, rgba(176, 184, 193, 0.05) 100%);
  opacity: 1;
  pointer-events: none; /* Allow clicks to pass through overlay */
}

.services-section .section-title,
.services-section .section-description {
  color: var(--dark-color);
  position: relative;
  z-index: 2;
}

.services-section .section-description {
  color: var(--gray-600);
}

/* Service Card Creative Theme */
.services-section .service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--dark-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.services-section .service-card:hover {
  background: var(--white);
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.services-section .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services-section .service-card:hover::before {
  opacity: 1;
}

.services-section .service-title {
  color: var(--dark-color);
}

.services-section .service-description {
  color: var(--gray-600);
}

.services-section .service-features {
  color: var(--gray-600);
}

.services-section .service-features ul {
  color: var(--gray-600);
}

.services-section .service-features li {
  color: var(--gray-600);
}

.services-section .service-link {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

.services-section .service-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Reduce gap between service cards */
.services-section .row {
  margin-top: -1rem;
}

.services-section .col-lg-4,
.services-section .col-md-6 {
  padding-top: 1rem;
}

/* Service Icon Styling */
.services-section .service-icon {
  background: var(--gradient-primary);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.services-section .service-card:hover .service-icon {
  background: var(--gradient-secondary);
  transform: scale(1.1);
  border-color: var(--secondary-color);
}
/* === Services Section Header === */
.section-heading-wrapper {
  position: relative;
  display: inline-block;
}

.services-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  background: linear-gradient(90deg, #2D466D, #7893b1, #2D466D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: 0.5px;
  animation: fadeInTitle 1.2s ease forwards;
  margin-top: 9px;
}

.services-section .highlight-text {
  color: transparent;
  background: linear-gradient(90deg, #2D466D, #B0B8C1, #2D466D);
  -webkit-background-clip: text;
  font-weight: 900;
}

.services-section .underline {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2D466D, #B0B8C1);
  border-radius: 3px;
  animation: underlineGrow 1.5s ease forwards;
}

.services-section .section-description {
  color: var(--gray-700);
  font-size: 1.1rem;
  margin-top: 1.2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeInDesc 1.6s ease forwards;
}

/* Home slider: tighten gap under intro (global .section-description uses 3rem bottom) */
.services-section.services-home .section-description {
  margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {

  .services-section .service-card {
    text-align: center;
  }

  .services-section .service-title {
    text-align: center;
  }

  .services-section .service-description {
    text-align: center;
  }

  .services-section .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .services-section .service-features {
    text-align: center;
  }

  .services-section .service-features ul {
    padding-left: 0;
    list-style-position: inside;
  }
}
/* === Animations === */
@keyframes fadeInTitle {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDesc {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes underlineGrow {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}
.service-features {
  text-align: left !important;
  display: inline-block;
}

.service-features ul {
  list-style-type: disc;
  padding-left: 25px;
  margin: 10px 0;
}

.service-features li {
  margin-bottom: 6px;
}

/* Project Cards */
.project-card {
  background: linear-gradient(180deg, #ffffff, #f8f9fc);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #eef1f6;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16,24,40,0.12);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(16,24,40,0.05), rgba(16,24,40,0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Project overlay buttons */
.project-overlay .btn {
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.project-overlay .btn-primary {
  background: linear-gradient(135deg, #2D466D, #B0B8C1);
  border: none;
}

.project-overlay .btn-dark {
  background: #333333;
  border: none;
}

.project-content {
  padding: 1.25rem 1.25rem 1.5rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: #333333;
}

.project-description {
  color: #475467;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.tech-tag {
  display: inline-block;
  background: #F2F4F7;
  color: #344054;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0.25rem 0.25rem 0 0;
}
/* === WorthyTech: Stats Section === */
.stats-section {
  background: #ffffff;
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

/* Subtle geometric pattern background */
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(45, 70, 109, 0.04) 25%, transparent 25%),
                    linear-gradient(225deg, rgba(176, 184, 193, 0.04) 25%, transparent 25%),
                    linear-gradient(45deg, rgba(45, 70, 109, 0.04) 25%, transparent 25%),
                    linear-gradient(315deg, rgba(176, 184, 193, 0.04) 25%, transparent 25%);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: 0;
  animation: meshMove 20s linear infinite alternate;
}

@keyframes meshMove {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 60px 60px, -60px -60px, 60px -60px, -60px 60px; }
}

/* === Stat Card === */
.stat-card {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-10px);
}

.stat-card-inner {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #d2dae4;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}
.stat-card:hover .stat-card-inner {
  border-color: rgba(45, 70, 109, 0.3);
  box-shadow: 0 10px 30px rgba(45, 70, 109, 0.15);
}

/* === ICON STRUCTURE === */
.stat-icon-wrapper {
  position: relative;
  width: 85px;
  height: 85px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating border ring */
.icon-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(45, 70, 109, 0.6),
    rgba(176, 184, 193, 0.6),
    rgba(45, 70, 109, 0.6)
  );
  animation: rotateRing 8s linear infinite;
  z-index: 1;
  opacity: 0.8;
  filter: blur(0.5px);
}

/* Soft outer glow */
.icon-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 70, 109, 0.25), transparent 70%);
  filter: blur(15px);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 0;
}

/* Icon circle */
.icon-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #B0B8C1 0%, #2D466D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(45, 70, 109, 0.25);
  z-index: 2;
  transition: all 0.4s ease;
}

/* Font Awesome icon */
.icon-circle i {
  color: #ffffff;
  font-size: 2rem;
  z-index: 3;
  position: relative;
}

/* Hover animation */
.stat-card:hover .icon-circle {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.45);
}

/* Glow + ring animation */
@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* === Text Content === */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.stat-plus,
.stat-hour {
  font-size: 1.8rem;
  color: #475569;
  font-weight: 600;
}
.stat-label {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-top: 0.5rem;
}
.stat-divider {
  width: 45px;
  height: 3px;
  background: linear-gradient(90deg, #2D466D, #B0B8C1);
  margin: 1rem auto 0;
  border-radius: 2px;
  opacity: 0.6;
  transition: all 0.3s ease;
}
.stat-card:hover .stat-divider {
  width: 65px;
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .stat-icon-wrapper { width: 70px; height: 70px; }
  .stat-number { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .stats-section { padding: 60px 0; }
  .stat-card-inner { padding: 2rem 1.5rem; }
}


/* CTA Section */
.cta-section-modern {
  position: relative;
  background: linear-gradient(135deg, #333333 0%, #2D466D 60%, #333333 100%);
  color: #ffffff;
  text-align: center;
  padding: 70px 0;
  overflow: hidden;
  z-index: 1;
}

/* Subtle animated overlay */
.cta-section-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(45, 70, 109, 0.15), transparent 70%),
    radial-gradient(circle at 75% 70%, rgba(176, 184, 193, 0.15), transparent 70%);
  animation: bgGlow 10s ease-in-out infinite alternate;
  z-index: 0;
}

/* Divider line under title */
.cta-divider {
  width: 100px;
  height: 3px;
  margin: 1rem 29.2rem 1.5rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #2D466D, #B0B8C1, #2D466D);
  animation: gradientShift 6s linear infinite;
}

/* Title */
.cta-title-modern {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.cta-title-modern .highlight-gradient {
  background: linear-gradient(90deg, #2D466D, #B0B8C1, #2D466D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}

/* Description */
.cta-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
  z-index: 2;
  position: relative;
}

/* Gradient Buttons */
.btn-gradient {
  position: relative;
  background: linear-gradient(135deg, #2D466D, #B0B8C1);
  border: none;
  color: #ffffff;
  padding: 0.8rem 2.2rem;
  border-radius: 35px;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 8px;
  box-shadow: 0 0 15px rgba(45, 70, 109, 0.3);
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #B0B8C1, #2D466D);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.5);
  color: #ffffff; /* text stays white */
}

/* === Outline Gradient Button (View Portfolio – Fully Fixed) === */
.btn-outline-gradient {
  position: relative;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff !important; /* force white text always */
  background: transparent;
  padding: 0.8rem 2.2rem;
  border-radius: 35px;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 8px;
  transition: all 0.4s ease;
  z-index: 1;
  overflow: hidden;
}

/* Gradient overlay behind text */
.btn-outline-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2D466D, #B0B8C1);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  z-index: -1; /* ensures text stays above gradient */
}

/* Hover: show gradient but keep white text visible */
.btn-outline-gradient:hover::before {
  opacity: 1;
}

.btn-outline-gradient:hover {
  color: #ffffff !important; /* stay white */
  border: 2px solid rgba(255, 255, 255, 0.85); /* keep border visible */
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.4);
}

/* Ensure icons & text always stay on top of gradient */
.btn-outline-gradient span,
.btn-outline-gradient i {
  position: relative;
  z-index: 2;
}  

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes bgGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
  .cta-title-modern {
    font-size: 1.9rem;
  }
  .cta-section-modern {
    padding: 55px 0;
  }
  .btn-gradient,
  .btn-outline-gradient {
    display: block;
    margin: 10px auto;
  }
}


/* Footer Base */
.footer {
  background: #333333;
  color: #d1d5db;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  /* Desktop: 4 columns */
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr; 
  column-gap: 2rem;
  row-gap: 2.5rem;
  align-items: flex-start;
}

/* Brand Section Styling */
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 12px;
  margin-bottom: 1rem;
  min-width: 0;
}

.footer-brand img,
.footer-brand .footer-logo {
  height: clamp(48px, 10vw, 70px);
  width: auto;
  object-fit: contain;
  margin-left: 0;
  flex-shrink: 0;
}

.footer-brand .footer-brand-text {
  font-size: clamp(1.15rem, 2.8vw + 0.35rem, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0;
  min-width: 0;
  flex: 1 1 12rem;
}

.footer-logo {
  width: auto;
}

.footer-text {
  font-size: 0.95rem;
  color: #a1a1aa;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* keep icon white always */
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #2D466D, #B0B8C1);
  transform: translateY(-3px);
  color: #ffffff; /* ensure icon color remains white */
}

/* Columns */
.footer-col .footer-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Contact Section */
.contact-card {
  background: transparent;
  padding-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  color: #d1d5db;
}
.contact-item .icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2D466D, #B0B8C1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Divider */
.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0 1.5rem;
}

/* Bottom Section */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.copyright {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0;
}

/* Background Decorative Logos */
.footer-bg-logo {
  position: absolute;
  opacity: 0.04;
  height: 150px;
  width: auto;
  filter: grayscale(100%);
}

.left-logo {
  bottom: 10%;
  left: 5%;
  transform: rotate(-15deg);
}

.right-logo {
  top: 12%;
  right: 5%;
  transform: rotate(15deg);
}


/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.form-label {
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(45, 70, 109, 0.25);
}

/* Contact Info */
.contact-info {
  background: var(--gray-100);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  height: 100%;
}

.info-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-content h6 {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.info-content p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}

/* Map */
.map-container {
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ */
.faq-section {
  background: var(--gray-100);
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--white);
  border: none;
  font-weight: var(--font-weight-medium);
  color: var(--dark-color);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(45, 70, 109, 0.25);
}

.accordion-body {
  background: var(--white);
  padding: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
      font-size: 2.5rem;
  }
  /* Ensure hero content clears fixed navbar on tablets/phones */
  .hero-section {
      padding-top: 90px;
      margin-top: 0;
  }
  /* Hide scroll indicator on mobile to prevent overlap */
  .scroll-indicator {
      display: none;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      align-items: stretch;
  }
  
  .hero-buttons .btn {
      width: 100%;
      margin-bottom: 1rem;
  }
  
  .floating-card {
      margin-bottom: 1rem;
  }
  
  .footer-bottom-links {
     flex-direction: row !important;
      gap: 1rem;
  }
  
  .contact-info {
      margin-top: 2rem;
  }
  
  .creative-features {
      grid-template-columns: 1fr;
  }
  
  .creative-visual {
      height: 320px;
      margin-top: 1.5rem;
  }
  .floating-elements {
      width: 300px;
      height: 300px;
  }
  .element {
      width: 88px;
      height: 88px;
      font-size: 1.5rem;
  }
  .element-6 { width: 180px; height: 180px; }
}

@media (max-width: 576px) {
  .hero-title {
      font-size: 2rem;
  }
  /* Slightly more space for smaller phones */
  .hero-section {
      padding-top: 104px;
  }
  
  .page-title {
      font-size: 2rem;
  }
  
  .section-title {
      font-size: 1.75rem;
  }
  
  .hero-description,
  .page-description {
      font-size: 1rem;
  }
  
  .cta-title {
      font-size: 2rem;
  }
  
  .cta-description {
      font-size: 1rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.bg-gradient-dark {
  background: var(--gradient-dark);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.rounded-custom {
  border-radius: var(--border-radius-lg);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(45, 70, 109, 0.25);
}

/* No Projects State */
.no-projects {
  padding: 4rem 2rem;
  text-align: center;
}

.no-projects i {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.no-projects h4 {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.no-projects p {
  color: var(--gray-500);
  font-size: 1.125rem;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .cta-section {
      display: none;
  }
  
  body {
      font-size: 12pt;
      line-height: 1.4;
  }
  
  .hero-section {
      background: none;
      color: var(--black);
  }
}

/* Creative Dark Section */
.creative-dark-section {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(45, 70, 109, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(176, 184, 193, 0.25), transparent 60%),
    linear-gradient(145deg, #333333 0%, #2D466D 45%, #333333 100%);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden; 
  z-index: 5;
  padding-top: 65px !important;
  padding-bottom: 65px !important;
  width: 100%;
}

.creative-dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(45, 70, 109, 0.15), transparent 80%),
    radial-gradient(circle at 80% 20%, rgba(176, 184, 193, 0.15), transparent 90%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  opacity: 0.6;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 30% 20%, black 50%, transparent 70%);
  z-index: 0;
}

.creative-content {
  position: relative;
  z-index: 2;
}

.creative-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.creative-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.creative-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: var(--font-weight-semibold);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.feature-item i {
  background: linear-gradient(135deg, #2D466D, #B0B8C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
}

:root {
  --orbit-diameter: 300px; /* Smaller circle */
  --icon-size: 80px;       /* Icon size */
  --orbit-duration: 25s;   /* Speed */
  --core-size: 110px;      /* Center core */
  --orbit-radius: calc((var(--orbit-diameter) / 2) - (var(--icon-size) / 2));
}

/* Section container */
.creative-dark-section {
  position: relative;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  overflow: visible !important;
}

.creative-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Orbit wrapper */
.orbit-wrapper {
  position: relative;
  width: var(--orbit-diameter);
  height: var(--orbit-diameter);
}

/* Center glowing core */
.center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--core-size);
  height: var(--core-size);
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(45, 70, 109, 0.45);
  z-index: 30;
  animation: corePulse 4s ease-in-out infinite;
}

/* Dashed orbit path */
.orbit-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-diameter);
  height: var(--orbit-diameter);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

/* Rotates entire orbit group */
.rotator {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation: rotateOrbit var(--orbit-duration) linear infinite;
}

/* Places each orb at specific starting angle */
.orbiter {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  transform-origin: 50% 50%;
}

/* Icon circle (non-rotating) */
.element {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  z-index: 12;

  /* Fixed position along orbit (no self rotation) */
  transform: translateX(var(--orbit-radius));
  transform-origin: center;
}

/* Keep icons upright — this stops self-rotation */
.element i {
  display: inline-block;
  transform: rotate(calc(-1 * var(--angle)));
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
}

/* Smooth overall rotation */
@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Core pulse animation */
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(45,70,109,0.45); transform: translate(-50%, -50%) scale(1); }
  50% { box-shadow: 0 0 70px rgba(45,70,109,0.7); transform: translate(-50%, -50%) scale(1.05); }
}

/* Glow behind */
.creative-visual::after {
  content: "";
  position: absolute;
  width: min(calc(var(--orbit-diameter) + 140px), 100%);
  height: calc(var(--orbit-diameter) + 140px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,70,109,0.22), rgba(176,184,193,0.12) 40%, transparent 70%);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --orbit-diameter: 260px;
    --icon-size: 70px;
    --core-size: 90px;
    --orbit-radius: calc((260px / 2) - (70px / 2));
  }
}

/* Bootstrap Override - Force Custom Button Styles */
.btn-primary,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--white) !important;
}

.btn-primary:hover {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-lg) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-outline-light,
.btn-outline-light:focus,
.btn-outline-light:focus-visible,
.btn-outline-light:active,
.btn-outline-light:active:focus,
.btn-outline-light:not(:disabled):not(.disabled):active,
.btn-outline-light:not(:disabled):not(.disabled):active:focus {
  background: transparent !important;
  border-color: var(--white) !important;
  box-shadow: none !important;
  color: var(--white) !important;
}

.btn-outline-light:hover {
  background: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Remove any blue focus rings */
.btn:focus,
.btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Specific focus styles for our buttons */
.btn-primary:focus,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(45, 70, 109, 0.25) !important;
}

.btn-outline-light:focus,
.btn-outline-light:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

/* Hero Section Button Overrides - Maximum Specificity */
.hero-section .btn-primary,
.hero-section .btn-primary:focus,
.hero-section .btn-primary:focus-visible,
.hero-section .btn-primary:active,
.hero-section .btn-primary:active:focus,
.hero-section .btn-primary:not(:disabled):not(.disabled):active,
.hero-section .btn-primary:not(:disabled):not(.disabled):active:focus {
  background: var(--gradient-primary) !important;
  border: 2px solid transparent !important;
  box-shadow: none !important;
  color: var(--white) !important;
}

.hero-section .btn-primary:hover {
  background: var(--gradient-primary) !important;
  border: 2px solid transparent !important;
  box-shadow: var(--shadow-lg) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.hero-section .btn-outline-light,
.hero-section .btn-outline-light:focus,
.hero-section .btn-outline-light:focus-visible,
.hero-section .btn-outline-light:active,
.hero-section .btn-outline-light:active:focus,
.hero-section .btn-outline-light:not(:disabled):not(.disabled):active,
.hero-section .btn-outline-light:not(:disabled):not(.disabled):active:focus {
  background: transparent !important;
  border: 2px solid var(--white) !important;
  box-shadow: none !important;
  color: var(--white) !important;
}

.hero-section .btn-outline-light:hover {
  background: var(--white) !important;
  border: 2px solid var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}


/* ===== FIX MOBILE WHITE STRIP ===== */
html, body {
overflow-x: hidden;
width: 100%;
position: relative;
}

* {
max-width: 100%;
box-sizing: border-box;
}

.container,
.container-fluid {
overflow-x: hidden;
padding-left: 15px;
padding-right: 15px;
}

/* Fix for any overflowing elements */
img, svg, iframe, video {
max-width: 100%;
height: auto;
}

/* Fix specific to the CTA or hero sections that might be causing overflow */
.cta-section-refined,
.about-hero,
.journey-section,
.values-section,
.skills-section-elegant {
overflow-x: hidden;
}

/* Ensure no horizontal scroll on any viewport */
@media (max-width: 768px) {
.row {
    margin-left: 0;
    margin-right: 0;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Remove any negative margins */
.container,
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Fix any full-width elements */
.cta-section-refined .container,
.about-hero .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}
}

/* ===== FOOTER MOBILE FIX - LEFT ALIGN ===== */

/* Desktop layout (4 columns) */
.footer-top {
display: grid;
grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
gap: 2rem;
align-items: flex-start;
}

/* Tablet view */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr; /* 2x2 Layout */
  }
  
  .footer-brand-section {
    grid-column: span 2; /* Brand takes full width on tablet */
    margin-bottom: 1rem;
  }
}

/* Mobile view - LEFT ALIGNED */
@media (max-width: 768px) {
.footer {
    padding: 3rem 0 2rem;
    text-align: left; /* Keeps the look consistent with your design */
  }

  .footer-top {
    grid-template-columns: 1fr; /* Stacked layout */
    gap: 2rem;
  }
.footer-brand {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 0;
        gap: 0.75rem;
    }

    .footer-brand img,
    .footer-brand .footer-logo {
        margin-left: 0;
        height: clamp(44px, 14vw, 56px);
        width: auto;
        transform: none;
    }

    .footer-brand .footer-brand-text {
        font-size: clamp(1.2rem, 4.2vw + 0.4rem, 1.65rem);
        text-align: left;
        margin-right: 0;
        flex: none;
        max-width: 100%;
    }
    
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-bottom-links {
   flex-direction: row !important;
    gap: 1rem;
  }

.footer-text {
    margin: 1rem 0;
    text-align: left;
    max-width: 100%;
}

.social-links {
    justify-content: flex-start;
}

.footer-col {
    text-align: left;
}

.footer-title {
    text-align: left;
    margin-bottom: 1rem;
}

.footer-links {
    text-align: left;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.contact-item {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 0.75rem;
}

.contact-item .icon {
    margin: 0;
    order: 1;
}

.contact-item span {
    order: 2;
}
.footer-bg-logo {
    display: none; /* Hide background logos on small screens to prevent overlap */
  }

.footer-bottom {
    flex-direction: column;
    text-align: left;
    gap: 1rem;
}

.footer-bottom-links {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.copyright {
    text-align: left;
}

/* Hide decorative logos on mobile */
.footer-bg-logo {
    display: none;
}
}
/* Mobile View Fixes (Max-width 768px) */
@media (max-width: 768px) {
  .navbar-brand {
    margin-left: 0 !important;
    gap: 4px !important;
    align-items: center;
  }

  .navbar-brand img,
  .navbar-brand .navbar-logo {
    height: 35px !important;
    margin: 0 !important;
  }

  .navbar-brand-text {
    margin: 0 !important;
    font-size: 1.2rem !important; /* Shrinks text to fit beside the toggle button */
    white-space: nowrap;
  }
  
  /* Centers the brand content within the flex container */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Small mobile view (Max-width 480px) */
@media (max-width: 480px) {
  .navbar-brand-text {
    font-size: 1.3rem !important; /* Smaller than 768 so brand + toggler stay one row */
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem !important;
    font-size: 1rem !important;
  }
  .navbar-brand img,
  .navbar-brand .navbar-logo {
    height: 40px !important;
    margin: 0 !important;
  }
}

/* Small mobile view */
@media (max-width: 480px) {
.footer-bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.brand-text {
    font-size: 2rem !important;
}

.footer-text {
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
}

.contact-item span {
    font-size: 0.85rem;
    word-break: break-word;
}

.footer-brand .footer-brand-text {
    font-size: clamp(1.1rem, 4vw + 0.35rem, 1.45rem);
}
}