/* Base styles (Dark Mode by default) */
body {
  font-family: "Poppins", sans-serif;
  background-color: #0a0a0a;
  color: #e2e8f0;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}
.tech-tag {
  background-color: #1e293b;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;

  background: linear-gradient(
    45deg,
    #3b82f6,
    #8b5cf6
  ); /* Standard syntax */
  background: -webkit-linear-gradient(
    45deg,
    #3b82f6,
    #8b5cf6
  ); /* For older Safari/Chrome */

  -webkit-background-clip: text; /* For Safari and Chrome */
  background-clip: text; /* Standard property (some browsers may support it) */

  -webkit-text-fill-color: transparent; /* For Safari and Chrome */
  color: transparent; /* Fallback or standard (may not work in all browsers) */
}

.skills-container {
  filter: invert(100%) grayscale(100%) opacity(0.8);
}
.header-bg {
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-bg {
  background-color: #1e293b; /* Darker blue-gray */
}
.footer-border {
  border-color: #1e293b;
}
.profile-pic-border {
  border-color: #d1d5db; /* gray-300, light border for dark mode */
}
nav a.text-slate-300:hover {
  color: #ffffff;
}

/* Light Mode Styles */
html:not(.dark) body {
  background-color: #f1f5f9; /* slate-100 */
  color: #0f172a; /* slate-900 */
}
html:not(.dark) .header-bg {
  background-color: rgba(255, 255, 255, 0.6);
}
html:not(.dark) a {
  color: #1e293b; /* slate-800 */
}
html:not(.dark) nav a:hover {
  color: #3b82f6; /* blue-500 */
}
html:not(.dark) .social-link-github:hover,
html:not(.dark) .social-link-scholar:hover {
  color: #0f172a !important; /* slate-900 */
}
html:not(.dark) .social-link-linkedin:hover {
  color: #2563eb !important; /* blue-600 */
}
html:not(.dark) .text-slate-400 {
  color: #475569; /* slate-600 */
}
html:not(.dark) .text-slate-300 {
  color: #334155; /* slate-700 */
}
html:not(.dark) .border-slate-700 {
  border-color: #d1d5db; /* gray-300 */
}
html:not(.dark) .profile-pic-border {
  border-color: #334155; /* slate-700, dark border for light mode */
}
html:not(.dark) .glass-card {
  background: #ffffff;
  border-color: #e5e7eb; /* gray-200 */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}
html:not(.dark) .glass-card:hover {
  border-color: #d1d5db; /* gray-300 */
}
html:not(.dark) .tech-tag {
  background-color: #e2e8f0; /* slate-200 */
  color: #475569; /* slate-600 */
}
html:not(.dark) .skills-container {
  filter: none;
}
html:not(.dark) .modal-bg {
  background-color: #ffffff;
}
html:not(.dark) .footer-border {
  border-color: #e2e8f0; /* slate-200 */
}
html:not(.dark) .text-slate-500 {
  color: #64748b; /* slate-500 */
}
html:not(.dark) .cta-button,
html:not(.dark) #scroll-to-top {
  color: #ffffff;
}
html:not(.dark) #modal-link {
  color: #ffffff;
}

/* Animation Styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  opacity: 0; /* Start hidden */
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.modal-overlay {
  transition: opacity 0.3s ease;
}
.modal-panel {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
