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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Apply animations to sections */
section {
    animation: fadeIn 0.8s ease-in-out;
}

/* Custom hover effects */
.hover-lift {
    transition: transform 0.3s ease;
}

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

/* Project card hover effect */
.scale-on-hover {
    transition: transform 0.5s ease;
}

.scale-on-hover:hover {
    transform: scale(1.03);
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero section enhancement */
#home {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                      url('../images/pattern.png');
    background-size: cover;
}

/* Profile image improvement */
#home img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#home img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile menu improvements */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu-button {
    transition: transform 0.3s ease;
}

.mobile-menu-button:focus {
    outline: none;
    transform: rotate(90deg);
}

/* Add smooth transition to nav links */
nav a {
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 2px;
    left: 0;
    background: #3B82F6;
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

nav a.text-blue-500:after {
    width: 100%;
}

/* Better card transitions */
.bg-white.rounded-lg {
    transition: all 0.3s ease;
}

.bg-white.rounded-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}



 @keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideInLeft {
  animation-name: slideInLeft;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-duration: 1s; /* add duration here for consistency */
}
.animate-slideInRight {
  animation-name: slideInRight;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-duration: 1s;
}
.animate-slideInUp {
  animation-name: slideInUp;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-duration: 1s;
}   