/* ===== PORTFOLIO ENHANCEMENTS ===== */
/* Typography Improvements - Apply Poppins font */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, button, input, textarea {
  font-family: 'Poppins', sans-serif !important;
}

/* Font Awesome Icons - Ensure they display properly */
.fa {
  font-family: 'FontAwesome' !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Specific icon styles */
.fa-laptop:before { content: "\f109"; }
.fa-pencil-square-o:before { content: "\f044"; }
.fa-area-chart:before { content: "\f1fe"; }
.fa-hourglass-end:before { content: "\f253"; }
.fa-gift:before { content: "\f06b"; }
.fa-smile-o:before { content: "\f118"; }
.fa-phone:before { content: "\f095"; }
.fa-envelope-o:before { content: "\f003"; }
.fa-linkedin-square:before { content: "\f08c"; }
.fa-twitter:before { content: "\f099"; }
.fa-angle-up:before { content: "\f106"; }

/* Teal Color Scheme */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --primary-hover: #0891b2;
}

/* Improve heading hierarchy and spacing */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.w3l-banner h1.title {
  font-weight: 700;
  line-height: 1.2;
}

.title-big {
  font-weight: 700;
  line-height: 1.3;
}

/* Enhanced Hero Section */
.w3l-banner .title-small {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.w3l-banner .hero-description {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-highlights {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}

.highlight-item .fa-check-circle {
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.highlight-item span:last-child {
  line-height: 1.2;
}

/* Responsive hero text */
@media (max-width: 768px) {
  .w3l-banner {
    padding: 40px 0 30px;
  }
  
  .w3l-banner .hero-description {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .highlight-item {
    font-size: 0.9rem;
  }
  
  .hero-highlights {
    margin: 0.8rem 0;
    gap: 6px;
  }
}

@media (max-width: 576px) {
  .w3l-banner {
    padding: 30px 0 20px;
  }
  
  .w3l-banner .hero-description {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  .highlight-item {
    font-size: 0.85rem;
    gap: 6px;
  }
  
  .hero-highlights {
    margin: 0.7rem 0;
    gap: 6px;
  }
}

/* Improve paragraph readability */
p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Profile Section Enhancements */
.profile-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.profile-content {
  position: relative;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.read-more-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.read-more-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.profile-full {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Color Enhancements - Service icons with primary color */
.w3l-services .icon span.fa {
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

.w3l-services .icon span.fa:hover {
  transform: scale(1.1);
}

/* Enhanced buttons */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Enhanced navigation */
.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

/* Image enhancements */
.img-effect {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.img-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.img-effect img {
  transition: all 0.3s ease;
}

.img-effect:hover img {
  transform: scale(1.05);
}

/* Classic Image Frame Effect */
.classic-image-frame {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* Dynamic floating particles */
.classic-image-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: 
    radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
  border-radius: 15px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: floatParticles 6s ease-in-out infinite;
}

/* Animated background pattern */
.classic-image-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(13, 148, 136, 0.05) 50%, transparent 60%);
  border-radius: 20px;
  pointer-events: none;
  animation: shimmerEffect 8s ease-in-out infinite;
}

/* Floating tech elements */
.classic-image-frame .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}

.classic-image-frame .floating-elements::before,
.classic-image-frame .floating-elements::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: floatUp 4s ease-in-out infinite;
}

.classic-image-frame .floating-elements::before {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.classic-image-frame .floating-elements::after {
  top: 25%;
  right: 15%;
  animation-delay: 2s;
}

/* Additional floating dots */
.classic-image-frame .floating-elements .dot1,
.classic-image-frame .floating-elements .dot2,
.classic-image-frame .floating-elements .dot3 {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatDown 5s ease-in-out infinite;
}

.classic-image-frame .floating-elements .dot1 {
  top: 70%;
  left: 20%;
  animation-delay: 1s;
}

.classic-image-frame .floating-elements .dot2 {
  top: 60%;
  right: 25%;
  animation-delay: 3s;
}

.classic-image-frame .floating-elements .dot3 {
  top: 80%;
  left: 50%;
  animation-delay: 1.5s;
}

.classic-image-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  filter: sepia(0.1) contrast(1.05) brightness(1.02);
}

.classic-image-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.classic-image-frame:hover::before {
  opacity: 1;
}

.classic-image-frame:hover img {
  transform: scale(1.03);
  filter: sepia(0.15) contrast(1.1) brightness(1.05);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Enhanced hover effects for floating elements */
.classic-image-frame:hover .floating-elements::before,
.classic-image-frame:hover .floating-elements::after,
.classic-image-frame:hover .floating-elements .dot1,
.classic-image-frame:hover .floating-elements .dot2,
.classic-image-frame:hover .floating-elements .dot3 {
  opacity: 0.8;
  transform: scale(1.5);
}

/* Animations */
@keyframes floatParticles {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.3;
  }
}

@keyframes shimmerEffect {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.3;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.6;
  }
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px) scale(1.2);
    opacity: 0.9;
  }
}

@keyframes floatDown {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(10px) scale(1.1);
    opacity: 0.7;
  }
}

/* Pulse effect for the frame */
.classic-image-frame {
  animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 
      0 15px 35px rgba(13, 148, 136, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  }
}

/* Responsive adjustments for classic frame */
@media (max-width: 768px) {
  .classic-image-frame {
    max-width: 300px;
    padding: 15px;
  }
  
  .classic-image-frame img {
    max-width: 250px;
  }
}

@media (max-width: 576px) {
  .classic-image-frame {
    max-width: 250px;
    padding: 12px;
  }
  
  .classic-image-frame img {
    max-width: 200px;
  }
}

/* Service cards enhancement */
.w3l-services .card {
  transition: all 0.3s ease;
  border-radius: 15px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.w3l-services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced Services Section */
.w3l-services .heading {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.w3l-services .services-intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-top: 0.5rem;
  font-weight: 400;
}

.w3l-services .box-wrap {
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.w3l-services .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.w3l-services .icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  transition: all 0.3s ease;
}

.w3l-services .card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.w3l-services .card:hover .icon::before {
  transform: scale(1.2);
  opacity: 0.5;
}

.w3l-services .icon span.fa {
  font-size: 1.8rem;
  color: #fff !important;
  transition: all 0.3s ease;
}

.w3l-services .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(13, 148, 136, 0.1);
  margin: 0 0 0.8rem 0;
  line-height: 1;
}

.w3l-services h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
}

.w3l-services h4 a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.w3l-services h4 a:hover {
  color: var(--primary);
}

.w3l-services p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* ===== SKILLS SECTION ===== */
.w3l-skills {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.w3l-skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.skills-intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-top: 0.5rem;
  font-weight: 400;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.skills-category {
  background: #fff;
  border-radius: 15px;
  padding: 20px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.skills-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.05), transparent);
  transition: left 0.6s;
}

.skills-category:hover::before {
  left: 100%;
}

.skills-category:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.15);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.category-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.category-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 12px;
  opacity: 0.3;
  z-index: -1;
  transition: all 0.3s ease;
}

.skills-category:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.skills-category:hover .category-icon::before {
  transform: scale(1.2);
  opacity: 0.5;
}

.category-icon span.fa {
  font-size: 18px;
  color: #fff !important;
  transition: all 0.3s ease;
}

.category-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.skills-category:hover .category-header h4 {
  color: var(--primary);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: all 0.3s ease;
}

.skills-category:hover .skill-name {
  color: #333;
  font-weight: 600;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.skill-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.1));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skills-category:hover .skill-bar::before {
  opacity: 1;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
  border-radius: 8px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Animate progress bars when in view */
.skills-category.animate .skill-progress {
  animation: progressAnimation 1.5s ease-out forwards;
}

@keyframes progressAnimation {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

/* Responsive skills section */
@media (max-width: 768px) {
  .skills-category {
    padding: 18px 15px;
    margin-bottom: 15px;
  }
  
  .category-header {
    margin-bottom: 15px;
    gap: 10px;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
  }
  
  .category-icon span.fa {
    font-size: 16px;
  }
  
  .category-header h4 {
    font-size: 1rem;
  }
  
  .skills-grid {
    gap: 12px;
  }
  
  .skill-name {
    font-size: 0.85rem;
  }
  
  .skill-bar {
    height: 5px;
  }
}

@media (max-width: 576px) {
  .skills-category {
    padding: 15px 12px;
  }
  
  .category-header {
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .category-icon {
    width: 35px;
    height: 35px;
  }
  
  .category-icon span.fa {
    font-size: 14px;
  }
  
  .category-header h4 {
    font-size: 0.95rem;
  }
  
  .skills-grid {
    gap: 10px;
  }
  
  .skill-name {
    font-size: 0.8rem;
  }
  
  .skill-bar {
    height: 4px;
  }
}

/* ===== COMPREHENSIVE TEAL OVERRIDE ===== */
/* Override all purple colors with teal throughout the site */
:root {
  --primary: #0d9488 !important;
  --purple: #0d9488 !important;
}

/* Override any remaining purple references */
[style*="#0d9488e6"],
[style*="purple"],
.fa,
span.fa,
i.fa {
  color: #0d9488 !important;
}

/* Override any inline styles */
[style*="color: #0d9488e6"],
[style*="color:#0d9488e6"],
[style*="color: purple"],
[style*="color:purple"] {
  color: #0d9488 !important;
}

/* Ensure proper contrast for text on colored backgrounds */
.btn-primary,
.btn-style,
.social li a,
#movetop,
.read-more-btn:hover {
  color: #ffffff !important;
}

/* Fix any remaining purple backgrounds */
[style*="background-color: #0d9488e6"],
[style*="background-color:#0d9488e6"],
[style*="background: #0d9488e6"],
[style*="background:#0d9488e6"] {
  background-color: #0d9488 !important;
}

/* Override Bootstrap primary classes */
.text-primary,
.bg-primary,
.border-primary {
  color: #0d9488 !important;
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
}

/* Ensure all primary-colored elements use teal */
[class*="primary"] {
  color: #0d9488 !important;
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
}

/* Override any remaining purple references in navigation */
.navbar-nav .nav-link[style*="#0d9488e6"],
.navbar-nav .nav-item .nav-link[style*="#0d9488e6"],
.navbar-nav .nav-link[style*="purple"],
.navbar-nav .nav-item .nav-link[style*="purple"] {
  color: #333 !important;
}

.navbar-nav .nav-link[style*="#0d9488e6"]:hover,
.navbar-nav .nav-item .nav-link[style*="#0d9488e6"]:hover,
.navbar-nav .nav-link[style*="purple"]:hover,
.navbar-nav .nav-item .nav-link[style*="purple"]:hover {
  color: #0d9488 !important;
}

/* Force button text visibility with maximum specificity */
html body .btn,
html body .btn-primary,
html body .btn-style,
html body a.btn,
html body button.btn {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .btn:hover,
html body .btn-primary:hover,
html body .btn-style:hover,
html body a.btn:hover,
html body button.btn:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Override any child elements */
html body .btn *,
html body .btn-primary *,
html body .btn-style * {
  color: #ffffff !important;
}

/* Specific hero section fix */
html body .w3l-banner .btn,
html body .w3l-banner .btn-primary,
html body .w3l-banner .btn-style {
  color: #ffffff !important;
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== PROFESSIONAL IDENTITY DESIGN ===== */
.professional-identity {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 40px 20px;
}

.identity-container {
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.identity-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.identity-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.identity-icon svg {
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.identity-icon:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 
    0 15px 35px rgba(13, 148, 136, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.identity-icon:hover svg {
  transform: scale(1.1);
}

.identity-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.identity-text .initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(13, 148, 136, 0.2);
}

.identity-text .title {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* Responsive adjustments for professional identity */
@media (max-width: 768px) {
  .professional-identity {
    min-height: 250px;
    padding: 30px 15px;
  }
  
  .identity-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
  }
  
  .identity-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .identity-text .initials {
    font-size: 2rem;
  }
  
  .identity-text .title {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .professional-identity {
    min-height: 200px;
    padding: 20px 10px;
  }
  
  .identity-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .identity-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .identity-text .initials {
    font-size: 1.8rem;
  }
  
  .identity-text .title {
    font-size: 0.8rem;
  }
}

/* ===== NAVIGATION COLOR FIXES ===== */
/* Fix all navigation color issues */
.navbar-nav .nav-link,
.navbar-nav .nav-item .nav-link {
  color: #333 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item .nav-link:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: rgba(13, 148, 136, 0.1);
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: rgba(13, 148, 136, 0.08) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
  border-radius: 8px;
}

/* Override any Bootstrap or theme purple colors */
.navbar-nav .nav-link:focus {
  color: var(--primary) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Fix any remaining purple underlines or borders */
.navbar-nav .nav-link::after,
.navbar-nav .nav-item .nav-link::after {
  display: none !important;
}

.navbar-nav .nav-link::before,
.navbar-nav .nav-item .nav-link::before {
  display: none !important;
}

/* Override any inline styles that might be purple */
.navbar-nav .nav-link[style*="color"],
.navbar-nav .nav-item .nav-link[style*="color"] {
  color: #333 !important;
}

.navbar-nav .nav-link[style*="color"]:hover,
.navbar-nav .nav-item .nav-link[style*="color"]:hover {
  color: var(--primary) !important;
}

/* Fix navbar brand color */
.navbar-brand {
  color: #333 !important;
}

.navbar-brand:hover {
  color: var(--primary) !important;
}

/* Comprehensive purple override for navigation */
.navbar *,
.navbar-nav *,
.nav-item *,
.nav-link * {
  color: inherit !important;
}

/* ===== ENHANCED CONTACT SECTION ===== */
.contact-intro {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.6;
  font-weight: 400;
}

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

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  border: 1px solid rgba(13, 148, 136, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.05), transparent);
  transition: left 0.6s;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.2);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-card:hover .contact-icon::before {
  transform: scale(1.2);
  opacity: 0.5;
}

.contact-icon span {
  color: white !important;
  font-size: 28px;
  transition: all 0.3s ease;
}

.contact-content h6 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-content a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border: none;
  min-width: 120px;
  justify-content: center;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.whatsapp-btn {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: white !important;
}

.whatsapp-btn:hover {
  background: #128c7e !important;
  border-color: #128c7e !important;
  color: white !important;
}

/* Responsive contact section */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 1.5rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.2rem;
  }
  
  .contact-icon span {
    font-size: 24px;
  }
  
  .contact-content h6 {
    font-size: 1.2rem;
  }
  
  .contact-content p {
    font-size: 1rem;
  }
  
  .contact-actions {
    gap: 10px;
  }
  
  .contact-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 110px;
  }
}

@media (max-width: 576px) {
  .contact-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .contact-icon span {
    font-size: 20px;
  }
  
  .contact-content h6 {
    font-size: 1.1rem;
  }
  
  .contact-content p {
    font-size: 0.95rem;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* ===== FIXED SCROLL TO TOP BUTTON ===== */
#movetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

#movetop:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

#movetop .fa {
  color: white !important;
  font-size: 18px;
  line-height: 1;
}

/* Ensure the angle-up icon displays properly */
#movetop .fa-angle-up:before {
  content: "\f106";
}

/* Responsive scroll to top */
@media (max-width: 768px) {
  #movetop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  #movetop .fa {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  #movetop {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #movetop .fa {
    font-size: 14px;
  }
}

/* ===== PORTFOLIO SECTION ===== */
.w3l-portfolio {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.w3l-portfolio::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 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%230d9488" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.portfolio-intro {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.6;
  font-weight: 400;
}

.portfolio-width {
  position: relative;
  z-index: 2;
}

.portfolio-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

.portfolio-preview {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.portfolio-iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1);
  transform-origin: top left;
  transition: transform 0.3s ease;
  background: white;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.portfolio-item:hover .portfolio-iframe {
  transform: scale(1.02);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 148, 136, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.portfolio-links {
  display: flex;
  gap: 15px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-links {
  transform: translateY(0);
}

.portfolio-link,
.portfolio-demo {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-link:hover,
.portfolio-demo:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.portfolio-link span.fa,
.portfolio-demo span.fa {
  font-size: 16px;
  font-weight: 600;
}

.portfolio-link:hover span.fa,
.portfolio-demo:hover span.fa {
  transform: scale(1.1);
}

.portfolio-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: white;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-info h4 {
  color: var(--primary);
}

.project-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-tag {
  font-size: 0.7rem;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.tech-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

@media (max-width: 768px) {
  .w3l-portfolio {
    padding: 3rem 0;
  }
  
  .portfolio-item {
    margin-bottom: 2rem;
  }
  
  .portfolio-info {
    padding: 1rem;
  }
  
  .portfolio-info h4 {
    font-size: 1rem;
  }
  
  .project-description {
    font-size: 0.8rem;
  }
  
  .portfolio-links {
    gap: 12px;
  }
  
  .portfolio-link,
  .portfolio-demo {
    width: 40px;
    height: 40px;
  }
  
  .portfolio-link span.fa,
  .portfolio-demo span.fa {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .w3l-portfolio {
    padding: 2rem 0;
  }
  
  .portfolio-item {
    margin-bottom: 1.5rem;
  }
  
  .portfolio-info {
    padding: 0.8rem;
  }
  
  .portfolio-info h4 {
    font-size: 0.95rem;
  }
  
  .project-description {
    font-size: 0.75rem;
  }
  
  .tech-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

/* ===== FOOTER SOCIAL ICONS ===== */
.w3l-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  position: relative;
}

.footer-content {
  padding: 20px 0;
}

.footer-left p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.social {
  list-style: none;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
}

.social li {
  margin: 0;
}

.social li a {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
  aspect-ratio: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.social li a:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  color: white;
}

.social li a span.fa {
  color: white !important;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Ensure specific social icons display properly */
.social li a .fa-linkedin-square:before {
  content: "\f08c";
}

.social li a .fa-twitter:before {
  content: "\f099";
}

.social li a .fa-facebook-official:before {
  content: "\f230";
}

.social li a .fa-instagram:before {
  content: "\f16d";
}

/* Responsive footer */
@media (max-width: 768px) {
  .social {
    justify-content: center;
    gap: 12px;
  }
  
  .social li a {
    width: 35px;
    height: 35px;
    font-size: 14px;
    aspect-ratio: 1;
    flex-shrink: 0;
  }
  
  .social li a span.fa {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  
  .footer-left {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .footer-right {
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .social {
    gap: 10px;
  }
  
  .social li a {
    width: 32px;
    height: 32px;
    font-size: 13px;
    aspect-ratio: 1;
    flex-shrink: 0;
  }
  
  .social li a span.fa {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}

/* ===== ENHANCED ACHIEVEMENTS SECTION ===== */
.w3l-stats {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.w3l-stats::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.w3l-stats::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(13, 148, 136, 0.04) 0%, transparent 50%);
  animation: statsPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes statsPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.stats-con {
  position: relative;
  z-index: 1;
}

.stats_info {
  margin-bottom: 30px;
}

.stats-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.05), transparent);
  transition: left 0.6s;
}

.stats-card:hover::before {
  left: 100%;
}

.stats-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.2);
}

.stats-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.stats-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
  transform: scale(1.1) rotate(5deg);
}

.stats-card:hover .stats-icon::before {
  transform: scale(1.2);
  opacity: 0.5;
}

.stats-icon span.fa {
  font-size: 32px;
  color: white !important;
  transition: all 0.3s ease;
}

.stats-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-content .counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  line-height: 1;
  transition: all 0.3s ease;
  position: relative;
}

.stats-content .counter::after {
  content: '+';
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.7;
  margin-left: 2px;
}

.stats-card:hover .stats-content .counter {
  transform: scale(1.1);
}

.stats-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.stats-card:hover .stats-content h4 {
  color: var(--primary);
}

/* ===== ENHANCED EXPERTISE SECTION ===== */
.w3l-services {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.w3l-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.w3l-services .heading {
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.w3l-services .card {
  background: white;
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.w3l-services .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.05), transparent);
  transition: left 0.6s;
}

.w3l-services .card:hover::before {
  left: 100%;
}

.w3l-services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.2);
}

.w3l-services .box-wrap {
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.w3l-services .icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.w3l-services .icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  transition: all 0.3s ease;
}

.w3l-services .card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.w3l-services .card:hover .icon::before {
  transform: scale(1.2);
  opacity: 0.5;
}

.w3l-services .icon span.fa {
  font-size: 2.5rem;
  color: white !important;
  transition: all 0.3s ease;
}

.w3l-services .number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(13, 148, 136, 0.1);
  margin: 0 0 1rem 0;
  line-height: 1;
}

.w3l-services h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.w3l-services h4 a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.w3l-services h4 a:hover {
  color: var(--primary);
}

.w3l-services p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .stats-card {
    padding: 2rem 1.5rem;
    margin-bottom: 20px;
  }
  
  .stats-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.2rem;
  }
  
  .stats-icon span.fa {
    font-size: 28px;
  }
  
  .stats-content .counter {
    font-size: 2.5rem;
  }
  
  .stats-content h4 {
    font-size: 1rem;
  }
  
  .w3l-services .box-wrap {
    padding: 2rem 1.5rem;
  }
  
  .w3l-services .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.2rem;
  }
  
  .w3l-services .icon span.fa {
    font-size: 2rem;
  }
  
  .w3l-services .number {
    font-size: 2.5rem;
  }
  
  .w3l-services h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .stats-card {
    padding: 1.5rem 1rem;
  }
  
  .stats-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .stats-icon span.fa {
    font-size: 24px;
  }
  
  .stats-content .counter {
    font-size: 2rem;
  }
  
  .w3l-services .box-wrap {
    padding: 1.5rem 1rem;
  }
  
  .w3l-services .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .w3l-services .icon span.fa {
    font-size: 1.8rem;
  }
  
  .w3l-services .number {
    font-size: 2rem;
  }
  
  .w3l-services h4 {
    font-size: 1.1rem;
  }
}

/* ===== DROPDOWN MENU STYLING ===== */
.dropdown-menu {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 10px;
  min-width: 180px;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.dropdown-item {
  color: #333 !important;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  position: relative;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.1), transparent);
  transition: width 0.3s ease;
}

.dropdown-item:hover {
  color: var(--primary) !important;
  background: rgba(13, 148, 136, 0.05) !important;
  text-decoration: none;
  transform: translateX(5px);
}

.dropdown-item:hover::before {
  width: 100%;
}

.dropdown-item:active {
  color: var(--primary) !important;
  background: rgba(13, 148, 136, 0.1) !important;
}

.dropdown-toggle::after {
  border-top-color: #333;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover::after {
  border-top-color: var(--primary);
}

/* Mobile dropdown styling */
@media (max-width: 991px) {
  .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    margin-left: 20px;
  }
  
  .dropdown-item {
    color: #555 !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 2px 0;
  }
  
  .dropdown-item:hover {
    background: rgba(13, 148, 136, 0.1) !important;
    color: var(--primary) !important;
    transform: translateX(0);
  }
  
  .dropdown-item::before {
    display: none;
  }
}

/* Dropdown active states */
.dropdown-item.active,
.dropdown-item:active {
  color: var(--primary) !important;
  background: rgba(13, 148, 136, 0.1) !important;
  font-weight: 600;
} 