:root {
  --kalatrix-purple: #9c2176;
  --kalatrix-deep: #2c1850;
  --kalatrix-peach: #e89c8f;
  --kalatrix-light: #fde8d6;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--kalatrix-purple) 0%,
    var(--kalatrix-deep) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--kalatrix-peach) 0%,
    var(--kalatrix-light) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    rgba(156, 33, 118, 0.1) 0%,
    rgba(44, 24, 80, 0.05) 100%
  );

  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(44, 24, 80, 0.1);
  --shadow-medium: 0 16px 48px rgba(44, 24, 80, 0.15);
  --shadow-strong: 0 24px 64px rgba(44, 24, 80, 0.2);
  --shadow-glow: 0 0 40px rgba(156, 33, 118, 0.3);

  /* Typography */
  --font-primary: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--kalatrix-deep);
  background-color: var(--kalatrix-light);
  overflow-x: hidden;
  position: relative;
}

/* Loading Animation */
body:not(.loaded) {
  overflow: hidden;
}

body:not(.loaded)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--kalatrix-light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:not(.loaded)::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  z-index: 10000;
  animation: spin 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Enhanced Floating Navbar */
.floating-nav {
  margin: 20px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
}

.floating-nav.scrolled {
  margin: 10px 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-medium);
}

.brand-animated {
  position: relative;
  display: inline-block;
  padding: 5px 0;
}

.brand-text {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.02em;
}

.brand-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
  border-radius: 3px;
}

.brand-animated:hover .brand-underline {
  transform: scaleX(1);
  transform-origin: left;
}

/* Animated Navigation Links */
.nav-link-animated {
  position: relative;
  padding: 8px 0;
  margin: 0 15px;
  color: var(--kalatrix-deep) !important;
  transition: color 0.3s ease;
}

.nav-link-animated.active {
  color: var(--kalatrix-purple) !important;
  font-weight: 700;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-link-animated:hover .nav-underline,
.nav-link-animated.active .nav-underline {
  transform: scaleX(1);
  transform-origin: left;
}

/* Custom Navbar Toggler */
.custom-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
}

.toggler-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--kalatrix-purple);
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Enhanced Hero Section */
.hero-section {
  background: var(--kalatrix-light);
  min-height: 85vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 5rem 0;
}

.hero-content-wrapper {
  padding-top: 3rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Floating elements removed */

.hero-badge {
  display: inline-block;
  animation: pulse 2s infinite;
}

.badge-text {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  font-family: "Poppins", sans-serif;
}

.typing-text,
.typing-text-2 {
  display: inline-block;
  border-right: 3px solid var(--kalatrix-purple);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--kalatrix-purple);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

.hero-subline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--kalatrix-deep);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-family: var(--font-primary);
}

.highlight-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
  transition: var(--transition-smooth);
  position: relative;
}

.highlight-text:hover {
  transform: translateY(-1px);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--kalatrix-purple);
  letter-spacing: -0.02em;
  font-family: "Poppins", sans-serif;
}

.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--kalatrix-deep);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Button Styles */
.btn-gradient {
  background: var(--gradient-primary);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 1rem 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover,
.btn-gradient:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-medium);
  color: #fff !important;
}

.btn-outline-gradient {
  background: transparent;
  color: var(--kalatrix-purple) !important;
  border: 2px solid var(--kalatrix-purple);
  border-radius: 50px;
  font-weight: 700;
  padding: 1rem 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-gradient:hover {
  background: var(--gradient-primary);
  color: #fff !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-medium);
}

.btn-hover-effect {
  position: relative;
  z-index: 10;
}

/* Z-index utility classes */
.z-index-2 {
  z-index: 2 !important;
  position: relative;
}

/* Hero content layering */
.hero-section .container {
  position: relative;
  z-index: 10;
}

.hero-section .btn {
  position: relative;
  z-index: 15;
  pointer-events: auto;
  /* Ensure animations work with z-index */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Ensure hover effects work properly */
.hero-section .btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
}

.hero-section .btn-gradient:hover::before {
  left: 100% !important;
}

.btn-hover-effect:hover i {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Hero Stats */
.hero-stats {
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: "Poppins", sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kalatrix-deep);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Image Animations */
.hero-image-container {
  position: relative;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(156, 33, 118, 0.2) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-main-image {
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.floating-animation {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.decorative-dots {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.3;
}

.dots-1 {
  top: -20px;
  left: -20px;
  animation: float 4s ease-in-out infinite;
}

.dots-2 {
  bottom: -20px;
  right: -20px;
  animation: float 4s ease-in-out infinite reverse;
}

.decorative-circle {
  position: absolute;
  border: 3px solid var(--kalatrix-purple);
  border-radius: 50%;
  opacity: 0.4;
}

.circle-1 {
  width: 80px;
  height: 80px;
  top: 20px;
  right: -30px;
  animation: rotate 8s linear infinite;
}

.circle-2 {
  width: 100px;
  height: 100px;
  bottom: 20px;
  left: -40px;
  animation: rotate 8s linear infinite reverse;
}

@keyframes rotate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Enhanced Services Subtitle */
.services-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.service-category {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--kalatrix-deep);
  font-size: 1.1em;
  transition: var(--transition-smooth);
  display: inline-block;
  position: relative;
}

.service-category:hover {
  color: var(--kalatrix-purple);
  transform: translateY(-2px);
}

.category-separator {
  margin: 0 1rem;
  color: var(--kalatrix-purple);
  font-weight: 300;
  font-size: 1.2em;
  opacity: 0.6;
}

/* Enhanced About Section */
.about-section {
  background: var(--kalatrix-light);
  position: relative;
}

.about-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(156, 33, 118, 0.1);
  backdrop-filter: blur(10px);
}

.about-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-decoration {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.3;
}

.values-container {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.value-item {
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.value-item:hover {
  background: rgba(156, 33, 118, 0.1);
  transform: translateY(-5px);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-text {
  font-weight: 600;
  color: var(--kalatrix-deep);
  font-size: 1.1rem;
}

/* Enhanced Services Section */
.services-section {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(156, 33, 118, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(232, 156, 143, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      rgba(253, 232, 214, 0.4) 0%,
      rgba(232, 156, 143, 0.1) 100%
    );
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(156, 33, 118, 0.03) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(232, 156, 143, 0.03) 1px,
      transparent 1px
    );
  background-size: 50px 50px, 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.service-card,
.modern-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(156, 33, 118, 0.1);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.modern-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  border-color: rgba(156, 33, 118, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.service-card:hover .service-icon,
.modern-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.service-title {
  color: var(--kalatrix-deep);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition-smooth);
}

.service-title:hover {
  color: var(--kalatrix-purple);
}

.service-card .card-body,
.modern-card .card-body {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-description {
  color: var(--kalatrix-deep);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.feature-tag {
  background: rgba(156, 33, 118, 0.1);
  color: var(--kalatrix-purple);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(156, 33, 118, 0.2);
  transition: var(--transition-smooth);
}

.feature-tag:hover {
  background: var(--kalatrix-purple);
  color: white;
  transform: translateY(-1px);
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  pointer-events: none;
}

.modern-card:hover .card-hover-effect {
  left: 100%;
}

.card-gradient {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-medium);
}

.card-white {
  background: white;
  color: var(--kalatrix-deep);
  border: 2px solid var(--kalatrix-purple);
}

.checkmark {
  color: var(--kalatrix-purple);
  font-size: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
}
.footer-link:hover {
  color: var(--kalatrix-peach);
}

/* Enhanced Footer Styles */
footer.bg-dark {
  background: var(--kalatrix-deep) !important;
}

.footer-title {
  color: var(--kalatrix-peach);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--kalatrix-peach);
  transform: translateX(5px);
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-social-link:hover {
  color: var(--kalatrix-peach);
  transform: translateX(5px);
}

.footer-social-link i {
  margin-right: 8px;
  width: 20px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--kalatrix-peach);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-tagline-small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-divider {
  border-color: rgba(232, 156, 143, 0.3);
  margin: 2rem 0 1.5rem 0;
}

/* Enhanced Testimonials Section */
.testimonials-section {
  background: linear-gradient(
    135deg,
    rgba(253, 232, 214, 0.5) 0%,
    rgba(232, 156, 143, 0.2) 100%
  );
  position: relative;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(156, 33, 118, 0.1);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.quote-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--kalatrix-deep);
  font-style: italic;
  opacity: 0.9;
}

.author-name {
  color: var(--kalatrix-purple);
  font-weight: 700;
  font-size: 1.1rem;
}

.author-title {
  color: var(--kalatrix-deep);
  opacity: 0.7;
  font-size: 0.9rem;
}

.testimonial-decoration {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.4;
}

/* Enhanced Contact Section */
.contact-link {
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 8px;
}

.contact-link:hover {
  background: rgba(156, 33, 118, 0.1);
  color: var(--kalatrix-purple) !important;
  transform: translateX(5px);
}

/* Portfolio Styles */
.portfolio-section {
  background: var(--kalatrix-light);
  position: relative;
}

.portfolio-filter {
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--kalatrix-purple);
  color: var(--kalatrix-deep);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 5px 10px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.portfolio-grid {
  position: relative;
}

.portfolio-item {
  transition: all 0.5s ease;
}

.portfolio-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(156, 33, 118, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-link {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kalatrix-purple);
  font-size: 1.2rem;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-link {
  transform: scale(1);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--kalatrix-deep);
}

.portfolio-category {
  color: var(--kalatrix-purple);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.portfolio-modal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
}

.portfolio-modal .modal-header {
  background: var(--gradient-primary);
  color: white;
  border-bottom: none;
}

.portfolio-modal .modal-title {
  font-weight: 700;
}

.portfolio-modal .btn-close {
  color: white;
  opacity: 1;
}

.cta-section {
  position: relative;
}

.cta-card {
  background: var(--gradient-primary);
  border-radius: 20px;
  color: white;
  box-shadow: var(--shadow-medium);
}

/* Contact Page Styles */
.contact-section {
  background: var(--kalatrix-light);
}

.contact-form-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.contact-info-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-info-icon {
  font-size: 1.8rem;
  color: var(--kalatrix-peach);
  flex-shrink: 0;
}

.contact-info-content h5 {
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--kalatrix-peach);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: white;
  color: var(--kalatrix-purple);
  transform: translateY(-5px);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* FAQ Section */
.faq-section {
  background: white;
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 15px !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.accordion-button {
  background: white;
  font-weight: 700;
  color: var(--kalatrix-deep);
  padding: 1.5rem;
  border-radius: 15px !important;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-size: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(5);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--kalatrix-deep);
  line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
  position: relative;
  padding: 4rem 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: var(--gradient-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px 30px;
  background: white;
  position: relative;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.timeline-date {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -12px;
}

.timeline-item:nth-child(even)::after {
  left: -13px;
}

@media (max-width: 767px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 18px;
  }
}

/* Team Section */
.team-section {
  background: linear-gradient(
    135deg,
    rgba(253, 232, 214, 0.3) 0%,
    rgba(232, 156, 143, 0.1) 100%
  );
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-content {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--kalatrix-deep);
}

.team-position {
  color: var(--kalatrix-purple);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.team-social-icon {
  width: 35px;
  height: 35px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.team-social-icon:hover {
  transform: translateY(-5px);
}

/* Enhanced Responsive Design */
@media (max-width: 991px) {
  .floating-nav {
    margin: 10px 15px;
    padding: 8px 0;
  }

  .brand-text {
    font-size: 1.8rem;
  }

  .hero-section {
    min-height: 80vh;
    padding: 1.5rem 0 4rem 0;
  }

  .hero-content-wrapper {
    padding-top: 2.5rem;
    min-height: 65vh;
  }

  .headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 1.5rem;
  }

  .hero-subline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .services-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .category-separator {
    margin: 0 0.5rem;
  }

  .hero-stats {
    margin-top: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .floating-shape {
    display: none;
  }

  .decorative-dots,
  .decorative-circle {
    display: none;
  }
}

@media (max-width: 767px) {
  .floating-nav {
    margin: 5px 10px;
  }

  .hero-section {
    min-height: 80vh;
    padding: 1rem 0 3rem 0;
  }

  .hero-content-wrapper {
    padding-top: 2rem;
    min-height: 60vh;
  }

  .headline {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    text-align: center;
  }

  .hero-subline {
    font-size: 1rem;
    text-align: center;
  }

  .services-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    text-align: center;
    line-height: 1.6;
  }

  .service-category {
    display: block;
    margin: 0.2rem 0;
  }

  .category-separator {
    display: none;
  }

  .btn-gradient,
  .btn-outline-gradient {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .value-icon {
    font-size: 2rem;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-card,
  .modern-card {
    padding: 1.5rem !important;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .service-description {
    font-size: 0.9rem;
  }

  .card-icon,
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* Beautification & Animations */

section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.card,
.form-control,
.btn,
.navbar,
.rounded-4,
.shadow-lg,
.shadow-sm {
  border-radius: 1.25rem !important;
}

.card,
.shadow-lg {
  box-shadow: 0 8px 32px rgba(44, 24, 80, 0.1),
    0 1.5px 6px rgba(44, 24, 80, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover,
.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px rgba(44, 24, 80, 0.18),
    0 3px 12px rgba(44, 24, 80, 0.12);
  z-index: 2;
}

.btn-gradient:focus,
.btn-gradient:hover {
  outline: none;
  box-shadow: 0 8px 32px rgba(44, 24, 80, 0.22);
  transform: scale(1.04);
}

.form-control {
  border-radius: 1.25rem;
  border: 2px solid var(--kalatrix-peach);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(44, 24, 80, 0.04);
}
.form-control:focus {
  border-color: var(--kalatrix-purple);
  box-shadow: 0 0 0 2px var(--kalatrix-peach);
}

input::placeholder,
textarea::placeholder {
  color: var(--kalatrix-deep);
  opacity: 0.7;
}

.footer-link {
  transition: color 0.2s;
}

a {
  transition: color 0.2s, background 0.2s;
}

img,
.card-img-top {
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(44, 24, 80, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}
img:hover,
.card-img-top:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(44, 24, 80, 0.18);
}

.card {
  margin-bottom: 2rem;
}

#hero {
  margin-top: 3rem;
  margin-bottom: 3rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.whychoose-bg {
  background: linear-gradient(
    120deg,
    var(--kalatrix-light) 0%,
    var(--kalatrix-peach) 100%
  );
}

.whychoose-list li {
  margin-bottom: 2rem !important;
}

.whychoose-list .checkmark {
  font-size: 2.2rem;
  color: var(--kalatrix-purple);
  flex-shrink: 0;
  line-height: 1;
}

@media (max-width: 767px) {
  .whychoose-bg .card {
    padding: 1.5rem !important;
  }
  .whychoose-list .checkmark {
    font-size: 1.5rem;
  }
}

/* Enhanced Case Study Modal Styles */
.portfolio-modal {
  z-index: 1055;
}

.portfolio-modal .modal-dialog {
  max-width: 90vw;
  margin: 1rem auto;
}

/* Enhanced Modal Display Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  display: none;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.modal.show {
  display: block !important;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-backdrop.show {
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Ensure backdrop is properly removed */
.modal-backdrop {
  transition: opacity 0.15s linear;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.fade.show {
  opacity: 1;
}

/* Force remove any stuck backdrops */
body:not(.modal-open) .modal-backdrop {
  display: none !important;
}

/* Touch-friendly improvements */
.btn-close-custom,
.footer-actions .btn {
  min-height: 44px; /* iOS recommended touch target size */
  min-width: 44px;
  touch-action: manipulation;
}

/* Prevent zoom on input focus (iOS) */
.modal input,
.modal select,
.modal textarea {
  font-size: 16px;
}

/* Smooth scrolling for modal content */
.case-study-body {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Video styling for services section */
.service-image-container video {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(44, 24, 80, 0.12);
  transition: all 0.3s ease;
  object-fit: cover;
}

.service-image-container video:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(44, 24, 80, 0.18);
}

/* Hide all video controls completely */
.service-image-container video::-webkit-media-controls {
  display: none !important;
}

.service-image-container video::-webkit-media-controls-panel {
  display: none !important;
}

.service-image-container video::-webkit-media-controls-play-button {
  display: none !important;
}

.service-image-container video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.service-image-container video::-moz-media-controls {
  display: none !important;
}

/* Disable right-click context menu on video */
.service-image-container video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Portfolio video styling */
.portfolio-image video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hide video controls in portfolio */
.portfolio-image video::-webkit-media-controls {
  display: none !important;
}

.portfolio-image video::-webkit-media-controls-panel {
  display: none !important;
}

.portfolio-image video::-webkit-media-controls-play-button {
  display: none !important;
}

.portfolio-image video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.portfolio-image video::-moz-media-controls {
  display: none !important;
}

/* Portfolio video hover effect to match images */
.portfolio-card:hover .portfolio-image video {
  transform: scale(1.1);
}

/* Ensure portfolio video doesn't interfere with overlay */
.portfolio-image video {
  position: relative;
  z-index: 1;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: auto;
}

/* Home page portfolio cards - increased height for better aspect ratio */
#portfolio .card .card-img-top {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  border-top-left-radius: calc(0.375rem - 1px) !important;
  border-top-right-radius: calc(0.375rem - 1px) !important;
  border-radius: 1.25rem 1.25rem 0 0 !important;
}

/* Ensure both images and videos have same dimensions in portfolio */
#portfolio .card img.card-img-top,
#portfolio .card video.card-img-top {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  border-top-left-radius: calc(0.375rem - 1px) !important;
  border-top-right-radius: calc(0.375rem - 1px) !important;
  border-radius: 1.25rem 1.25rem 0 0 !important;
}

/* Maintain hover effects for portfolio cards */
#portfolio .card img.card-img-top:hover,
#portfolio .card video.card-img-top:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(44, 24, 80, 0.18);
}

/* Hide video controls in portfolio cards */
.card video::-webkit-media-controls {
  display: none !important;
}

.card video::-webkit-media-controls-panel {
  display: none !important;
}

.card video::-webkit-media-controls-play-button {
  display: none !important;
}

.card video::-webkit-media-controls-start-playbook-button {
  display: none !important;
}

.card video::-moz-media-controls {
  display: none !important;
}

/* Footer developer credit styling */
.footer-developer-credit {
  color: #ffffff !important;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer contact alignment fix */
.footer-contact p {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.footer-contact p i {
  flex-shrink: 0;
}

.footer-contact p a {
  white-space: normal;
  word-break: break-word;
}

/* Enhanced Responsive Design & Accessibility */

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus,
.social-icon:focus {
  outline: 2px solid var(--kalatrix-purple);
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--kalatrix-purple);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Improved responsive typography */
@media (max-width: 576px) {
  .headline {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Enhanced mobile navigation */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 10px;
    padding: 20px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Improved card responsiveness */
@media (max-width: 768px) {
  .card {
    margin-bottom: 2rem;
  }

  .service-card,
  .portfolio-card {
    height: auto;
    min-height: 300px;
  }

  .hero-section {
    padding: 100px 0 50px;
  }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .social-icon,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }

  .portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-study-modal {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: white;
}

.case-study-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 2rem;
  position: relative;
}

.case-study-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.project-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.project-category {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-close-custom {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.btn-close-custom:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.case-study-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.case-study-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
}

.case-study-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 24, 80, 0.7) 0%,
    rgba(156, 33, 118, 0.5) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
}

.case-study-section .section-title {
  color: var(--kalatrix-deep);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.section-description {
  color: var(--kalatrix-deep);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.project-details-card {
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(156, 33, 118, 0.1);
}

.details-title {
  color: var(--kalatrix-deep);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(156, 33, 118, 0.1);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--kalatrix-deep);
  opacity: 0.7;
}

.detail-value {
  font-weight: 700;
  color: var(--kalatrix-purple);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(156, 33, 118, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--kalatrix-purple);
}

.tech-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.tech-name {
  font-weight: 600;
  color: var(--kalatrix-deep);
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--kalatrix-purple);
}

.result-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.result-label {
  font-weight: 700;
  color: var(--kalatrix-deep);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.result-description {
  color: var(--kalatrix-deep);
  opacity: 0.6;
  font-size: 0.9rem;
}

.case-study-footer {
  background: var(--kalatrix-light);
  border: none;
  padding: 1.5rem 2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  background: var(--kalatrix-purple);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-actions {
  display: flex;
  align-items: center;
}

/* Enhanced Responsive Modal Styles */
.portfolio-modal .modal-dialog {
  margin: 0.5rem;
  max-width: calc(100vw - 1rem);
}

@media (max-width: 991px) {
  .portfolio-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .case-study-body {
    padding: 1.5rem;
    max-height: 65vh;
    overflow-y: auto;
  }

  .case-study-hero {
    height: 250px;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .project-details-card {
    margin-top: 2rem;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .result-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 767px) {
  .portfolio-modal .modal-dialog {
    margin: 0.25rem;
    max-width: calc(100vw - 0.5rem);
  }

  .case-study-header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .case-study-header .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .project-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .btn-close-custom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
  }

  .case-study-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
  }

  .case-study-hero {
    height: 180px;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .section-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .project-details-card {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .details-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .detail-item {
    padding: 0.5rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .detail-label {
    font-size: 0.8rem;
    opacity: 0.8;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .result-card {
    padding: 1rem 0.75rem;
  }

  .result-number {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
  }

  .result-label {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
  }

  .result-description {
    font-size: 0.7rem;
  }

  .case-study-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .project-tags {
    justify-content: center;
    gap: 0.5rem;
  }

  .project-tag {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  /* Ensure modal content doesn't overflow */
  .modal-content {
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  .portfolio-modal .modal-dialog {
    margin: 0.1rem;
    max-width: calc(100vw - 0.2rem);
  }

  .case-study-header {
    padding: 0.75rem;
  }

  .case-study-body {
    padding: 0.75rem;
    max-height: 65vh;
  }

  .case-study-hero {
    height: 150px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .section-description {
    font-size: 0.85rem;
  }

  .project-details-card {
    padding: 0.75rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .result-card {
    padding: 0.75rem;
  }

  .result-number {
    font-size: 1.5rem;
  }

  .case-study-footer {
    padding: 0.75rem;
  }

  .project-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}
