/* Projects Preview Styles */
.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(5, 130, 202, 0.15);
}

.project-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 130, 202, 0.9), rgba(0, 53, 84, 0.9));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

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

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

.tech-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #0582CA;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.project-link {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0582CA;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  opacity: 1;
  z-index: 3;
}

.project-link:hover {
  background: #fff;
  color: #0582CA;
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
  text-align: left;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-category {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 500;
}

.project-description {
  color: #6c757d;
  font-size: 0.8rem;
  margin-top: 8px;
  line-height: 1.4;
  font-style: italic;
}

/* Enhanced Counter Section Styles */
.section-counter {
  position: relative;
  overflow: hidden;
}

/* Section Spacing */
.sect-pt4 {
  padding: 80px 0 !important;
}

/* Ensure consistent section backgrounds */
.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: #ffffff !important;
}

/* Add subtle borders between sections */
section:not(.bg-image):not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.overlay-mf-enhanced {
  background: linear-gradient(135deg, rgba(5, 130, 202, 0.85), rgba(0, 53, 84, 0.85));
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.overlay-mf-enhanced::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  pointer-events: none;
}

.counter-section-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.counter-section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.counter-box-enhanced {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 30px 20px;
  margin: 15px 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.counter-box-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.8s ease;
}

.counter-box-enhanced:hover::before {
  left: 100%;
}

.counter-box-enhanced:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.counter-ico-enhanced {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.counter-ico-enhanced span {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.counter-box-enhanced:hover .counter-ico-enhanced {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.counter-num-enhanced {
  position: relative;
  z-index: 2;
}

.counter-num-enhanced .counter {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: block;
}

.counter-text-enhanced {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Contact Section Styles */
.contact-item {
  padding: 20px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1EAEF4, #007bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(30, 174, 244, 0.3);
}

.contact-icon i {
  color: white;
}

/* Compact Social Links */
.social-link-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1EAEF4, #007bff);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(30, 174, 244, 0.3);
}

.social-link-compact:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(30, 174, 244, 0.4);
  color: white;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1EAEF4, #007bff);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 174, 244, 0.3);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(30, 174, 244, 0.4);
  color: white;
}

/* Responsive Hero Background Images */
#hero {
  background-image: url('../img/bg-header-desktop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Social Links Styling */
#hero .social-links {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

#hero .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #1EAEF4;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#hero .social-links a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: #000000;
}

#hero .social-links a span {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-image-container {
    height: 220px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-category {
    font-size: 0.85rem;
  }

  .section-counter {
    padding: 50px 0;
  }

  .counter-section-title {
    font-size: 1.8rem;
  }

  .counter-section-subtitle {
    font-size: 0.9rem;
  }

  .counter-box-enhanced {
    padding: 25px 15px;
    margin: 10px 0;
  }

  .counter-ico-enhanced {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .counter-ico-enhanced span i {
    font-size: 2rem;
  }

  .counter-num-enhanced .counter {
    font-size: 2.5rem;
  }

  .counter-text-enhanced {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
  }

  .stats-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .stats-icon i {
    font-size: 1.8rem;
  }

  .social-link-compact {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  #hero {
    background-image: url('../img/bg-header-tab.jpg');
  }

  #hero .hero-content {
    padding-top: 500px !important;
  }
  
  #hero .text-left {
    text-align: center !important;
  }
  
  #hero .hero-title1 {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }
  
  #hero .hero-subtitle1 {
    font-size: 1.3rem !important;
    margin-bottom: 20px;
  }
  
  #hero p {
    font-size: 0.95rem !important;
    max-width: 100% !important;
    margin-bottom: 25px !important;
  }
  
  #hero .btn {
    width: 170px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
  }
  
  #hero .social-links {
    justify-content: center;
    margin-top: 25px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
  }
  
  #hero .social-links a {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  /* Skills scroll responsive */
  .skills-scroll-track {
    animation-duration: 25s;
    gap: 25px;
  }
  
  .skills-icon-item {
    padding: 5px;
  }
  
  .skills-icon-item img {
    height: 50px !important;
  }
}

/* Responsive Hero Content */
@media (min-width: 768px) {
  #hero .text-left {
    margin-top: 10%;
    text-align: left !important;
  }
  
  #hero .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  #hero {
    background-image: url('../img/hero-bg-mobile.jpg');
  }
}

@media (max-width: 480px) {
  .skills-scroll-track {
    animation-duration: 20s;
    gap: 20px;
  }
}

/* Hero Section Styles */
.hero {
  height: 100vh;
  position: relative;
  color: #fff;
}

.hero .hero-content {
  position: absolute;
}

.hero .overlay-intro {
  background-color: rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  opacity: 0.9;
}

.hero .hero-title1 {
  color: #fff;
  font-weight: 500;
  font-size: 3rem;
  font-family: "Poppins", sans-serif;
}

.hero .hero-title2 {
  color: #fff;
  font-weight: 600;
  font-size: 2.5rem;
  font-family: "Poppins", sans-serif;
  margin-top: 450px;
}

.hero .hero-subtitle1 {
  color: #fff;
  font-weight: 400;
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
}

.hero .hero-subtitle2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
}

/* Skills Scroll Animation */
.skills-scroll-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 30px 0;
  mask: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.skills-scroll-track {
  display: flex;
  width: max-content;
  animation: infiniteScroll 30s linear infinite;
  gap: 40px;
}

.skills-icon-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  padding: 10px;
}

.skills-icon-item:hover {
  transform: scale(1.3);
}

.skills-icon-item img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: filter 0.3s ease;
}

.skills-icon-item:hover img {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

/* Pause animation on hover */
.skills-scroll-container:hover .skills-scroll-track {
  animation-play-state: paused;
}

/* Professional Experience Section Styles */
#experience {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

#experience::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="expdots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%231EAEF4" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23expdots)"/></svg>');
  opacity: 0.6;
}

#experience .container {
  position: relative;
  z-index: 1;
}

#experience .experience-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(30, 174, 244, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 174, 244, 0.1);
  margin-top: 20px;
}

#experience .experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1EAEF4, #007bff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#experience .experience-card:hover::before {
  opacity: 1;
}

#experience .experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(30, 174, 244, 0.15);
}

.company-logo-container {
  text-align: center;
}

.company-logo {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(30, 174, 244, 0.1) 0%, rgba(0, 123, 255, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 8px 20px rgba(30, 174, 244, 0.2);
  transition: all 0.3s ease;
}

.company-logo i {
  font-size: 2.5rem !important;
  color: #1EAEF4 !important;
}

#experience .experience-card:hover .company-logo {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(30, 174, 244, 0.3);
}

.company-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white !important;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.position-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin-bottom: 8px !important;
  line-height: 1.3;
}

.company-name {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1EAEF4 !important;
  margin-bottom: 12px !important;
}

.position-description {
  color: #6c757d !important;
  font-size: 1rem !important;
  line-height: 1.6;
  margin-bottom: 20px !important;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: linear-gradient(135deg, #1EAEF4 0%, #007bff 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(30, 174, 244, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 174, 244, 0.4);
}

/* Button Styling */
#experience .btn-outline-primary {
  border: 2px solid #1EAEF4;
  color: #1EAEF4 !important;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

#experience .btn-outline-primary:hover {
  background: linear-gradient(135deg, #1EAEF4 0%, #007bff 100%);
  border-color: transparent;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 174, 244, 0.3);
}

/* Responsive Design for Experience Section */
@media (max-width: 768px) {
  #experience h3 {
    font-size: 2rem !important;
  }
  
  #experience .experience-card {
    padding: 20px;
    margin-top: 15px;
  }
  
  .company-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  
  .company-logo i {
    font-size: 2rem !important;
  }
  
  .position-title {
    font-size: 1.3rem !important;
  }
  
  .company-name {
    font-size: 1rem !important;
  }
  
  .position-description {
    font-size: 0.9rem !important;
  }
  
  .tech-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (max-width: 576px) {
  #experience .experience-card {
    padding: 15px;
  }
  
  .company-logo {
    width: 50px;
    height: 50px;
  }
  
  .company-logo i {
    font-size: 1.5rem !important;
  }
  
  .position-title {
    font-size: 1.2rem !important;
  }
  
  .tech-tags {
    gap: 6px;
  }
  
  .tech-tag {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

/* Mobile responsive styles for contact section */
@media (max-width: 768px) {
  #contact .col-lg-8 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 576px) {
  #contact .col-lg-8 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  #contact .container {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
}