/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  
  @keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  
  @keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
  }
  
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  
  /* ===== GLOBAL ANIMATION CLASSES ===== */
  .animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
  }
  
  .delay-100 { animation-delay: 0.1s; }
  .delay-200 { animation-delay: 0.2s; }
  .delay-300 { animation-delay: 0.3s; }
  .delay-400 { animation-delay: 0.4s; }
  .delay-500 { animation-delay: 0.5s; }
  
  .fade-in { animation-name: fadeIn; }
  .slide-left { animation-name: slideInFromLeft; }
  .slide-right { animation-name: slideInFromRight; }
  .slide-top { animation-name: slideInFromTop; }
  .slide-bottom { animation-name: slideInFromBottom; }
  .scale-up { animation-name: scaleUp; }
  
  /* ===== SPECIFIC ANIMATIONS ===== */
  
  /* Navigation animations */
  .navbar {
    transition: all 0.4s ease;
  }
  
  .navbar.scrolled {
    /* background: rgba(21, 20, 29, 0.95); */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  /* Profile animations */
  .profile-circle {
    transition: transform 0.5s ease;
  }
  
  .profile-circle:hover {
    transform: scale(1.05);
  }
  
  .rotating-circle {
    animation: spin 10s linear infinite;
  }
  
  .profile-badge {
    animation: pulse 2s infinite;
  }
  
  /* Geometric shapes animations */
  .geometric-shapes .shape {
    transition: transform 0.8s ease;
  }
  
  .geometric-shapes:hover .shape-circle {
    transform: translateX(20px) rotate(180deg);
  }
  
  .geometric-shapes:hover .shape-square {
    transform: translateY(-20px) rotate(45deg);
  }
  
  .geometric-shapes:hover .shape-triangle {
    transform: translateX(-20px) rotate(-180deg);
  }
  
  /* Floating icons animations */
  .floating-icons .tech-icon {
    animation: bounce 3s infinite;
    animation-delay: calc(var(--i) * 0.2s);
  }
  
  .tech-icon:nth-child(1) { --i: 1; }
  .tech-icon:nth-child(2) { --i: 2; }
  .tech-icon:nth-child(3) { --i: 3; }
  .tech-icon:nth-child(4) { --i: 4; }
  .tech-icon:nth-child(5) { --i: 5; }
  
  /* Service cards animations */
  .service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .service-icon i {
    transition: transform 0.4s ease;
  }
  
  .service-card:hover .service-icon i {
    transform: scale(1.2) rotate(10deg);
  }
  
  /* Process steps animations */
  .process-step {
    transition: transform 0.4s ease;
  }
  
  .process-step:hover {
    transform: translateY(-5px);
  }
  
  .step-number {
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .process-step:hover .step-number {
    color: var(--primary);
    background-color: var(--secondary);
    transform: scale(1.1);
  }
  
  /* Project card animations */
  .project-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .project-img img {
    transition: transform 0.5s ease;
  }
  
  .project-card:hover .project-img img {
    transform: scale(1.1);
  }
  
  /* Timeline animations */
  .timeline-item {
    transition: transform 0.4s ease;
  }
  
  .timeline-item:hover {
    transform: translateX(10px);
  }
  
  .timeline-dot {
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background-color: var(--primary);
  }
  
  .timeline-icon {
    transition: transform 0.4s ease, background-color 0.4s ease;
  }
  
  .timeline-item:hover .timeline-icon {
    transform: rotate(360deg);
    background-color: var(--primary);
    color: var(--light);
  }
  
  /* Skill progress animations */ 
 .progress {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)); */
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s ease;
  }
  
  .skill-card.animate .progress {
    transform: scaleX(1);
  }
  
  /* Contact form animations */
  .contact-form-container {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .contact-form-container:hover {
    transform: translateY(-10px);
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); */
  }
  
  .contact-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .contact-icon {
    transition: transform 0.4s ease, background-color 0.4s ease;
  }
  
  .contact-card:hover .contact-icon {
    transform: scale(1.1);
    background-color: var(--primary);
    color: var(--light);
  }
  
  input, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
  }
  
  .submit-btn {
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .submit-btn:hover {
    background-color: red;
    transform: translateY(-3px);
  }
  
  /* Certificate animations */
  .certificate-img {
    transition: transform 0.4s ease;
    overflow: hidden;
  }
  
  .certificate-img:hover {
    transform: scale(1.05);
  }
  
  /* CTA section animations */
  .cta-box {
    /* animation: pulse 3s infinite; */
    transition: transform 0.4s ease;
  }
  
  .cta-box:hover {
    transform: translateY(-10px);
  }
  
  /* Scroll to top button animation */
  .scroll-top {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .scroll-top:hover {
    transform: translateY(-5px);
  }
  
  /* Page transitions */
  .page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
  }
  
  .page-transition.active {
    transform: translateY(0);
  }
  
  /* Animate on scroll initialization */
  .hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .visible {
    opacity: 1;
    transform: translateY(0);
  }