:root {
  --primary: #F8F9FA;
  --secondary: #E9ECEF;
  --accent: #4361EE;
  --accentLight: #7289DA;
  --accentDark: #3A56D4;
  --dark-primary: #121212;
  --dark-secondary: #1E1E1E;
  --dark-accent: #5390D9;
  --dark-accentLight: #7BB3FD;
  --dark-accentDark: #3A7BD5;
}

/* Remove underline from all links */
a {
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  color: #4361ee;
}

/* Navbar link styles */
.nav-link {
  color: #4B5563;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  margin: 0 0.125rem;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover {
  color: var(--accent);
  background-color: rgba(67, 97, 238, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
}

.nav-link:hover::before {
  left: 100%;
}

/* Mobile nav link styles */
.mobile-nav-link {
  color: #4B5563;
  font-weight: 500;
  padding: 0.875rem 1.25rem;
  margin: 0.125rem 0;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
  background-color: rgba(67, 97, 238, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
}

.mobile-nav-link:hover::before {
  left: 100%;
}

/* Dark mode navbar links */
.dark .nav-link {
  color: #D1D5DB;
}

.dark .nav-link:hover {
  color: var(--dark-accent);
  background-color: rgba(83, 144, 217, 0.12);
  box-shadow: 0 4px 12px rgba(83, 144, 217, 0.2);
}

.dark .nav-link::before {
  background: linear-gradient(90deg, transparent, rgba(83, 144, 217, 0.1), transparent);
}

.dark .mobile-nav-link {
  color: #D1D5DB;
}

.dark .mobile-nav-link:hover {
  color: var(--dark-accent);
  background-color: rgba(83, 144, 217, 0.12);
  box-shadow: 0 4px 12px rgba(83, 144, 217, 0.2);
}

.dark .mobile-nav-link::before {
  background: linear-gradient(90deg, transparent, rgba(83, 144, 217, 0.1), transparent);
}

/* Dark Mode Transition */
.dark-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Utility Classes from Inline Styles */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
}
.transition-all-300 {
  transition: all 0.3s ease;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}
.hover-scale:hover {
  transform: scale(1.05);
}
.hover-float:hover {
  transform: translateY(-5px);
}
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card-shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.card-shadow-dark {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}
.card-shadow-dark-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}
.bg-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bg-glass-dark {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, #4361EE, #7289DA);
}
.gradient-text-dark {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, #5390D9, #7BB3FD);
}

/* Primary Button Styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accentLight));
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(67, 97, 238, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accentDark), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(67, 97, 238, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.8s;
}

.btn-primary:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Dark Mode Primary Button */
.dark .btn-primary {
  background: linear-gradient(135deg, var(--dark-accent), var(--dark-accentLight));
  box-shadow: 0 4px 14px 0 rgba(83, 144, 217, 0.3);
}

.dark .btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-accentDark), var(--dark-accent));
  box-shadow: 0 8px 25px 0 rgba(83, 144, 217, 0.4);
}

/* Small Primary Button */
.btn-primary-sm {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accentLight));
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px 0 rgba(67, 97, 238, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary-sm:hover {
  background: linear-gradient(135deg, var(--accentDark), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px 0 rgba(67, 97, 238, 0.4);
}

.btn-primary-sm:active {
  transform: translateY(0);
}

.btn-primary-sm::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn-primary-sm:hover::before {
  left: 100%;
}

.btn-primary-sm::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.8s;
}

.btn-primary-sm:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Dark Mode Small Primary Button */
.dark .btn-primary-sm {
  background: linear-gradient(135deg, var(--dark-accent), var(--dark-accentLight));
  box-shadow: 0 2px 8px 0 rgba(83, 144, 217, 0.3);
}

.dark .btn-primary-sm:hover {
  background: linear-gradient(135deg, var(--dark-accentDark), var(--dark-accent));
  box-shadow: 0 4px 15px 0 rgba(83, 144, 217, 0.4);
}

/* Secondary Button Styles */
.btn-secondary {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--accent);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--accent);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(67, 97, 238, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  transition: left 0.7s ease;
}

.btn-secondary:hover::before {
  left: 100%;
}

/* Dark Mode Secondary Button */
.dark .btn-secondary {
  background: transparent;
  color: var(--dark-accent);
  border-color: var(--dark-accent);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

.dark .btn-secondary:hover {
  background: rgba(83, 144, 217, 0.1);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.3);
}

/* Small Secondary Button */
.btn-secondary-sm {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--accent);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--accent);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-secondary-sm:hover {
  background: rgba(67, 97, 238, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary-sm:active {
  transform: translateY(0);
}

.btn-secondary-sm::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  transition: left 0.7s ease;
}

.btn-secondary-sm:hover::before {
  left: 100%;
}

/* Dark Mode Small Secondary Button */
.dark .btn-secondary-sm {
  background: var(--dark-secondary);
  color: var(--dark-accent);
  border-color: var(--dark-accent);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
}

.dark .btn-secondary-sm:hover {
  background: rgba(83, 144, 217, 0.1);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #4361EE;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a56d4;
}

/* Dark Mode Scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1E1E1E;
}
.dark ::-webkit-scrollbar-thumb {
  background: #5390D9;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #4a80c9;
}

/* Page Transition Animation */
.page-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}
.page-enter-active {
  opacity: 1;
  transform: translateY(0);
}

/* Image Hover Effect */
.image-container {
  overflow: hidden;
  border-radius: 0.5rem;
}
.image-container img {
  transition: transform 0.5s ease;
}
.image-container:hover img {
  transform: scale(1.1);
}

/* Button Ripple Effect */
.ripple-button {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.ripple-button:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.8s;
}
.ripple-button:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Background Pattern */
.bg-pattern {
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dark .bg-pattern {
  background-color: #121212;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235390d9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}