@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.about-links {
  display: none;
}

.about-image {
  width: 21em !important;
}

@media (max-width: 991px) {
  .about-image {
    width: 14em !important;
  }
}

p {
  font-family: 'Inter', sans-serif, Georgia,Cambria,"Times New Roman",Times,serif !important;
}

body {
  font-family: 'Inter', sans-serif, Georgia,Cambria,"Times New Roman",Times,serif !important;
}

.navbar-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-bottom: 8px !important;
  transition: color 0.2s ease;
}

.navbar {
  border: none !important;
}

.navbar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-title:hover {
  color: #0084e5 !important;
}

.navbar-title:hover::after {
  background: #0084e5;
  width: 100%;
}

/* Search button with magnifying glass lens fill animation */
#quarto-search .aa-DetachedSearchButton {
  position: relative;
  overflow: visible;
}

#quarto-search svg.aa-SubmitIcon {
  transition: fill 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Create the filling circle effect for magnifying glass lens */
#quarto-search .aa-DetachedSearchButton::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #88d4eb;
  border-radius: 50%;
  transform: translate(-50%, -50%) translate(-1px, -1px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0;
}

#quarto-search .aa-DetachedSearchButton:hover::before {
  width: 1.1em;
  height: 1.1em;
  opacity: 1;
}

/* Add curved elliptical light reflection on the lens */
#quarto-search .aa-DetachedSearchButton::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 80% 60% 60% 40%;
  transform: translate(-50%, -50%) translate(-3px, -3px) rotate(-35deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  z-index: 3;
  opacity: 0;
}

#quarto-search .aa-DetachedSearchButton:hover::after {
  width: 7px;
  height: 4px;
  opacity: 1;
}


/* Navbar hover animations with horizontal strip effect */
.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 8px !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* About link - Blue */
.navbar-nav .nav-item:nth-child(1) .nav-link.active {
    color: #3B82F6 !important;
  }

.navbar-nav .nav-item:nth-child(1) .nav-link:hover {
    color: #3B82F6 !important;
  }
  
  .navbar-nav .nav-item:nth-child(1) .nav-link:hover::after {
    background: #3B82F6;
    width: 100%;
  }

/* Blog link - Purple */
.navbar-nav .nav-item:nth-child(2) .nav-link.active {
  color: #8B5CF6 !important;
}

.navbar-nav .nav-item:nth-child(2) .nav-link:hover {
  color: #8B5CF6 !important;
}

.navbar-nav .nav-item:nth-child(2) .nav-link:hover::after {
  background: #8B5CF6;
  width: 100%;
}

/* Projects link - Green */
.navbar-nav .nav-item:nth-child(3) .nav-link.active {
  color: #10B981 !important;
}

.navbar-nav .nav-item:nth-child(3) .nav-link:hover {
  color: #10B981 !important;
}

.navbar-nav .nav-item:nth-child(3) .nav-link:hover::after {
  background: #10B981;
  width: 100%;
}

/* Contact link - Orange */
.navbar-nav .nav-item:nth-child(4) .nav-link.active {
    color: #D97706 !important;
  }

.navbar-nav .nav-item:nth-child(4) .nav-link:hover {
    color: #D97706 !important;
  }
  
  .navbar-nav .nav-item:nth-child(4) .nav-link:hover::after {
    background: #D97706;
    width: 100%;
  }

/* Ensure the animation works for icon links too */
.navbar-nav .nav-link i {
  transition: color 0.2s ease;
}

/* About page social links styling */
.about-links .about-link {
  transition: color 0.2s ease;
  text-decoration: none;
}

/* LinkedIn link - Blue */
.about-links .about-link:nth-child(1) {
  color: #0077b5 !important;
}

.about-links .about-link:nth-child(1):hover {
  color: #003f7f !important;
}

/* GitHub link - Dark Gray */
.about-links .about-link:nth-child(2) {
  color: #4d4d4d !important;
}

.about-links .about-link:nth-child(2):hover {
  color: #1a1a1a !important;
}

/* Email link - Bright Red */
.about-links .about-link:nth-child(3) {
  color: #ea4335 !important;
}

.about-links .about-link:nth-child(3):hover {
  color: #ff0000 !important;
}

/* Ensure icons inherit the link colors */
.about-links .about-link i,
.about-links .about-link iconify-icon {
  transition: color 0.2s ease;
}

.fa-linkedin {
  color: #0077b5 !important;
}

.fa-github {
  color: #4d4d4d !important;
}

.fa-envelope {
  color: #ea4335 !important;
}

.footer {
  font-size: 1.2rem;
}

.bi-rss {
  color: #D97706 !important;
}

/* Landing page animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waveAnimation {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  70% { transform: rotate(0deg); }
  80% { transform: rotate(0deg); }
  90% { transform: rotate(0deg); }
}

/* Base animation class */
.animate-element {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered delays for each element */
.animate-hello {
  animation-delay: 0.3s;
}

.animate-greeting {
  animation-delay: 1s;
}

.animate-paragraph-1 {
  animation-delay: 2s;
}

.animate-paragraph-2 {
  animation-delay: 2s;
}

.animate-paragraph-3 {
  animation-delay: 2s;
}

/* Wave animation for the emoji */
.wave-emoji {
  display: inline-block;
  animation: waveAnimation 2s ease-in-out;
  animation-delay: 0.3s;
  transform-origin: 70% 70%;
}

/* Enhanced hero section styles */
.gradient-text {
  background: linear-gradient(135deg, #0184e4, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.role-text {
  font-size: 1.25rem;
  color: #4a5568;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Education section - compact and modern */
.education-section {
  margin: 1.5rem 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.credential-item {
  position: relative;
  padding: 1.25rem;
  background: transparent;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credential-item:hover {
  transform: translateY(-1px);
  border-color: #0184e4;
  box-shadow: 0 4px 12px rgba(1, 132, 228, 0.08);
}

.credential-label {
  display: block;
  font-size: 0.875rem;
  color: #718096;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.credential-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.credential-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.credential-university-link {
  font-size: 0.875rem;
  color: #718096;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credential-university-link:hover {
  color: #0184e4;
  background: rgba(1, 132, 228, 0.1);
  text-decoration: none;
}

.credential-period {
  font-size: 0.875rem;
  color: #0184e4;
  font-weight: 500;
}

/* Action buttons - minimalist but elegant */
.action-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0;
  align-items: center;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  min-width: 140px;
}

.action-button.primary {
  background: linear-gradient(135deg, #0184e4, #00c6ff);
  color: white;
  padding: 0.875rem 1.75rem;
  box-shadow: 0 4px 12px rgba(1, 132, 228, 0.25);
}

.action-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 132, 228, 0.35);
  color: white;
}

.action-button.secondary {
  background: rgba(1, 132, 228, 0.1);
  color: #0184e4;
  border: 1px solid rgba(1, 132, 228, 0.2);
  padding: 0.875rem 1.75rem;
}

.action-button.secondary:hover {
  background: rgba(1, 132, 228, 0.15);
  border-color: rgba(1, 132, 228, 0.3);
  transform: translateY(-1px);
  color: #0184e4;
}

.action-button.tertiary {
  background: transparent;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  padding: 0.875rem 1.75rem;
}

.action-button.tertiary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #2d3748;
  transform: translateY(-1px);
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.button-icon {
  font-size: 1.125rem;
  opacity: 0.9;
}

.button-text {
  font-weight: 500;
}

/* Personal section - cleaner design */
.personal-section {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
}

.personal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.personal-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  max-width: 65ch;
  font-style: italic;
}

/* Enhanced animation timings */
.animate-subtitle {
  animation-delay: 2s;
}

.animate-credentials {
  animation-delay: 2s;
}

.animate-description {
  animation-delay: 2s;
}

.animate-actions {
  animation-delay: 2s;
}

.animate-personal {
  animation-delay: 2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .action-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .action-button {
    width: 100%;
    min-width: unset;
  }
  
  .personal-text {
    max-width: none;
  }
}