/* CSS Document */

/* Nexademics Modern Styles */
@import 'https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap';

:root {
  --primary-color: #6366f1;
  --secondary-color: #818cf8;
  --accent-color: #a5b4fc;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #ffffff;
  --background-light: #f8fafc;
  --background-white: #ffffff;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background-color: #ffffff;
}

/* Typography with enhanced contrast */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1f2937;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #374151;
}

/* Hero Section with improved text visibility */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent !important;
  z-index: 1;
}

.hero-section h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.hero-section .cta-primary {
  background: #ffffff;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-shadow: none;
}

.hero-section .cta-primary:hover {
  background: #f3f4f6;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.hero-section .cta-secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid #ffffff;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-shadow: none;
}

.hero-section .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-section::before {
    opacity: 0.95;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.98), rgba(99, 102, 241, 0.98));
  }

  .hero-section h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
  }
  
  .hero-section p {
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
  }

  .hero-section .container {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .image-container {
    position: relative;
  }

  .image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 1;
  }

  .service-card .image-container img {
    height: 200px;
  }
}

/* Override any conflicting Tailwind classes */
.text-white {
  color: #ffffff !important;
}

.text-gray-200 {
  color: #ffffff !important;
}

.from-indigo-900\/95 {
  background: rgba(49, 46, 129, 0.98) !important;
}

.to-purple-900\/95 {
  background: rgba(76, 29, 149, 0.98) !important;
}

/* Stats Section */
.stats-section {
  background: var(--background-white);
}

.stats-section .text-4xl {
  color: var(--primary-color);
  font-weight: 700;
}

.stats-section .text-gray-600 {
  color: #4b5563 !important;
  font-weight: 500;
}

/* Service Cards with enhanced text visibility */
.service-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.05);
}

/* Enhanced Image Container */
.service-card .image-container {
  position: relative;
  height: 240px;
  margin: -2rem -2rem 1.5rem;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

.service-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.service-card:hover .image-overlay {
  opacity: 0.9;
}

/* Enhanced Service Icon */
.service-card .icon-container {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.service-card .service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.service-card .service-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.service-card:hover .service-icon::before {
  transform: translateX(100%);
}

.service-card .service-icon i {
  transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
  transform: scale(1.2);
  animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card .image-container {
    height: 200px;
    margin: -1.5rem -1.5rem 1.5rem;
  }
  
  .service-card .service-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
  
  .service-card .icon-container {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .service-card .image-container {
    height: 180px;
  }
}

.service-card ul li {
  transition: all 0.3s ease;
  opacity: 0.9;
  color: #374151 !important;
}

.service-card:hover ul li {
  transform: translateX(5px);
  opacity: 1;
}

.service-card .cta-primary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card .cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: -webkit-transform 0.6s ease;
  transition: transform 0.6s ease;
}

.service-card .cta-primary:hover::before {
  transform: translateX(100%);
}

/* Service Section Background */
.bg-pattern {
  background-image: radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
                    radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Enhanced Animations */
@-webkit-keyframes shine {
  0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
  100% { -webkit-transform: translateX(100%); transform: translateX(100%); }
}
@keyframes shine {
  0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
  100% { -webkit-transform: translateX(100%); transform: translateX(100%); }
}

@-webkit-keyframes float {
  0% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-10px); transform: translateY(-10px); }
  100% { -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes float {
  0% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-10px); transform: translateY(-10px); }
  100% { -webkit-transform: translateY(0); transform: translateY(0); }
}

/* Buttons */
.cta-primary {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.cta-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
}

.cta-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* Modal Styles */
.modal-dialog.modal-dialog-centered.modal-lg .modal-content {
    border-radius: 1.5rem;
    overflow: hidden;
    -webkit-box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.05);
            box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.05);
    background: var(--background-white);
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
    opacity: 0;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-dialog.modal-dialog-centered.modal-lg .modal-content.show {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
}

.modal-dialog.modal-dialog-centered.modal-lg .modal-header {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.modal-dialog.modal-dialog-centered.modal-lg .modal-header .modal-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.modal-dialog.modal-dialog-centered.modal-lg .modal-header .btn-close {
    color: #ffffff !important;
    opacity: 1;
    font-size: 1.25rem;
}

.modal-dialog.modal-dialog-centered.modal-lg .modal-body {
    padding: 2rem;
    background: var(--background-white);
}

/* Form Elements in Modal */
.modal-dialog.modal-dialog-centered.modal-lg .form-label {
    color: #1f2937 !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input,
.modal-dialog.modal-dialog-centered.modal-lg .form-select,
.modal-dialog.modal-dialog-centered.modal-lg textarea.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #000000 !important;
    background: var(--background-white);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input:focus,
.modal-dialog.modal-dialog-centered.modal-lg .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input::-webkit-input-placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input::-moz-placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input:-ms-input-placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input::-ms-input-placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.modal-dialog.modal-dialog-centered.modal-lg .form-input::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

/* Progress Steps in Modal */
.modal-dialog.modal-dialog-centered.modal-lg .progress-steps {
    margin: 0 0 2rem;
    padding: 1rem 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.modal-dialog.modal-dialog-centered.modal-lg .step-circle {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-weight: 600;
    color: #000000 !important;
    position: relative;
    z-index: 2;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.modal-dialog.modal-dialog-centered.modal-lg .step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    -webkit-box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.modal-dialog.modal-dialog-centered.modal-lg .step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937 !important;
    margin-top: 0.5rem;
}

.modal-dialog.modal-dialog-centered.modal-lg .step.active .step-label {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Modal Buttons */
.modal-dialog.modal-dialog-centered.modal-lg .btn-next,
.modal-dialog.modal-dialog-centered.modal-lg .btn-prev,
.modal-dialog.modal-dialog-centered.modal-lg .btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.modal-dialog.modal-dialog-centered.modal-lg .btn-next,
.modal-dialog.modal-dialog-centered.modal-lg .btn-submit {
    background: var(--primary-color);
    color: #ffffff !important;
}

.modal-dialog.modal-dialog-centered.modal-lg .btn-prev {
    background: transparent;
    color: #000000 !important;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-dialog.modal-dialog-centered.modal-lg .btn-next:hover,
.modal-dialog.modal-dialog-centered.modal-lg .btn-submit:hover {
    background: var(--secondary-color);
    -webkit-transform: translateY(-1px);
            transform: translateY(-1px);
}

.modal-dialog.modal-dialog-centered.modal-lg .btn-prev:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Override any Tailwind classes that might affect the modal */
.modal-dialog.modal-dialog-centered.modal-lg [class*="text-gray-"] {
    color: #000000 !important;
}

.modal-dialog.modal-dialog-centered.modal-lg .text-white {
    color: #ffffff !important;
}

.modal-dialog.modal-dialog-centered.modal-lg .modal-icon {
    color: #ffffff !important;
}

/* Form Steps */
.form-step {
  display: none;
  opacity: 0;
  -webkit-transform: translateX(20px);
          transform: translateX(20px);
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.form-step.active {
  display: block;
  opacity: 1;
  -webkit-transform: translateX(0);
          transform: translateX(0);
  -webkit-animation: fadeIn 0.5s ease-out forwards;
          animation: fadeIn 0.5s ease-out forwards;
}

/* Animation for form transitions */
@-webkit-keyframes formSlideIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
@keyframes formSlideIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

.form-step.active {
  -webkit-animation: formSlideIn 0.3s ease-out forwards;
          animation: formSlideIn 0.3s ease-out forwards;
}

/* Footer with enhanced text visibility */
footer {
  background: #1f2937;
  color: var(--text-light);
  padding: 4rem 0;
}

footer h4 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer p, footer a {
  color: #f3f4f6 !important;
  opacity: 1;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 6rem 0 4rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .progress-steps {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 1rem;
  }

  .step {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 1rem;
  }

  .step-circle {
    margin-bottom: 0;
  }
}

/* Animations */
@-webkit-keyframes fadeIn {
  from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@-webkit-keyframes slideIn {
  from { -webkit-transform: translateY(100%); transform: translateY(100%); opacity: 0; }
  to { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { -webkit-transform: translateY(100%); transform: translateY(100%); opacity: 0; }
  to { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
  -webkit-animation: fadeIn 0.5s ease-out forwards;
          animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
  -webkit-animation: slideIn 0.5s ease-out forwards;
          animation: slideIn 0.5s ease-out forwards;
}

/* Notifications */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: white;
  -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
  font-weight: 500;
  max-width: 24rem;
  -webkit-animation: slideIn 0.3s ease-out;
          animation: slideIn 0.3s ease-out;
}

.notification-success {
  border-left: 4px solid #10B981;
  color: #065F46;
}

.notification-error {
  border-left: 4px solid #EF4444;
  color: #991B1B;
}

/* Additional Animations */
.animate-fadeIn {
  -webkit-animation: fadeIn 0.5s ease-in-out;
          animation: fadeIn 0.5s ease-in-out;
}

.animate-slideIn {
  -webkit-animation: slideIn 0.5s ease-in-out;
          animation: slideIn 0.5s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Premium Features */
.premium-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.premium-card:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Stats Counter Animation */
@-webkit-keyframes countUp {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

.stat-number {
  -webkit-animation: countUp 1s ease-out forwards;
          animation: countUp 1s ease-out forwards;
}

/* Research Cards Enhancement */
.research-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.05);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(129, 140, 248, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.research-card:hover::before {
    opacity: 1;
}

/* Icon Styling */
.icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.icon-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.research-card:hover .icon-circle::before {
    opacity: 1;
}

/* Research Link Styling */
.research-link {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.research-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.research-link:hover {
    color: #4f46e5;
}

.research-link:hover::after {
    width: 100%;
}

/* Enhanced Text Visibility */
.research-card h3 {
    color: #1f2937;
    font-weight: 700;
    transition: color 0.3s ease;
}

.research-card p {
    color: #374151;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Card Hover Animation */
@keyframes cardFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.research-card:hover {
    border-color: #6366f1;
    animation: cardFloat 3s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .research-card {
        padding: 1.5rem;
    }

    .research-card h3 {
        font-size: 1.5rem;
    }

    .research-card p {
        font-size: 1rem;
    }
}

/* Project Cards Styling */
.project-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Project Status Badges */
.project-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.project-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.project-status.ongoing {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.project-status.new {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-status.digital {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

/* Project Card Button */
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -1px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.project-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-btn:hover i {
    transform: translateX(4px);
}

/* Completed Projects Section */
.completed-project-card {
    scroll-snap-align: start;
    min-width: 300px;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.completed-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.completed-project-card .image-container {
    margin: -2rem -2rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.completed-project-card .image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.completed-project-card:hover .image-container img {
    transform: scale(1.1);
}

.completed-project-card .image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.completed-project-card:hover .image-container::after {
    opacity: 1;
}

.completed-project-card .client-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.completed-project-card:hover .client-badge {
    background: rgba(99, 102, 241, 0.2);
}

/* Happy Clients Section */
.client-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
}

.client-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.client-card:hover img {
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.client-card .stars {
    color: #FCD34D;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness for New Sections */
@media (max-width: 768px) {
    .completed-project-card {
        padding: 1.5rem;
    }

    .completed-project-card .image-container img {
        height: 180px;
    }

    .client-card {
        padding: 1.25rem;
    }

    .client-card img {
        width: 60px;
        height: 60px;
    }

    .completed-project-card h3,
    .client-card h4 {
        font-size: 1.25rem;
    }

    .completed-project-card p,
    .client-card p {
        font-size: 0.875rem;
    }
}

/* Completed Projects Carousel */
.projects-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
}

.projects-scroll {
    display: flex;
    gap: 2rem;
    position: relative;
    width: max-content;
    animation: scrollProjects 40s linear infinite;
    will-change: transform;
}

@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}

.projects-scroll:hover {
    animation-play-state: paused;
}

.completed-project-card {
    flex: 0 0 auto;
    width: 350px;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

/* Section CTA Button */
.section-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 3rem;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.section-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -1px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.section-cta i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.section-cta:hover i {
    transform: translateX(4px);
}

/* Fund Our Projects Section */
.funding-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.funding-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.funding-card .image-container {
    margin: -2rem -2rem 1.5rem;
    height: 240px;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.funding-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.funding-card .image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.funding-card:hover .image-container::after {
    opacity: 1;
}

.funding-progress {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 999px;
    margin: 1.5rem 0 0.75rem;
    overflow: hidden;
}

.funding-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 999px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.funding-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.funding-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.funding-stats span {
    font-weight: 600;
}

.donate-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -1px rgba(99, 102, 241, 0.3);
}

.donate-btn i {
    transition: transform 0.3s ease;
}

.donate-btn:hover i {
    transform: scale(1.2);
    color: #fde68a;
}

/* Enhanced Funding Tags */
.funding-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4f46e5;
    backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.3);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.funding-tag::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(45deg, #6366f1, #818cf8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.funding-card:hover .funding-tag {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

/* Quick Links Card Section */
.quick-links-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: 4rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.quick-link-card:hover::before {
    transform: translateY(0);
}

.quick-link-card i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.quick-link-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #4f46e5;
}

.quick-link-card h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.quick-link-card:hover h4 {
    color: #4f46e5;
}

.quick-link-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.quick-link-card:hover p {
    color: #4b5563;
}

.quick-link-card a {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.quick-link-card a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.quick-link-card:hover a {
    color: #4f46e5;
    gap: 0.5rem;
}

.quick-link-card:hover a::after {
    width: 100%;
}

@media (max-width: 768px) {
    .quick-links-section {
        padding: 2rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-link-card {
        padding: 1.5rem;
    }
}

