@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.project-card {
  transition: none;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #00a6fb;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #00a6fb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  background: rgba(224, 224, 224, 0.05);
  border: 1px solid rgba(224, 224, 224, 0.1);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00a6fb;
  box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.1);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00a6fb, #0077b6);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 166, 251, 0.3);
}

.btn-primary1 {
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  color: #000;
  transition: all 0.3s ease;
}

.btn-primary1:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.6);
}

.social-icon {
  transition: all 0.3s ease;
  transform: scale(1);
}

.social-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 166, 251, 0.3);
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
    position: relative;
    padding-left: 2.5rem;
  }

  .timeline-item .timeline-content {
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
    margin-top: 0;
    position: relative;
    z-index: 10;
  }

  .timeline-line {
    left: 1rem !important;
    z-index: 1;
  }

  .timeline-dot {
    left: 1rem !important;
    transform: translateX(-50%) !important;
    z-index: 5;
    background-color: #00a6fb !important;
    border: 2px solid #121212;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .section-padding {
    padding: 2rem 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .section-padding {
    padding: 1.5rem 0.75rem;
  }

  .skill-card {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-brand {
    font-size: 1rem;
  }
}
