:root {
  --primary: #006d77;
  --accent: #004e89;
  --dark: #1a1a1a;
  --light: #f9fafb;
}

* {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
.font-manrope {
  font-family: "Manrope", sans-serif;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.hero-content {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up-delayed {
  opacity: 0;
  will-change: transform, opacity;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

input,
textarea {
  border-radius: 0 !important;
}

/* Transitions for interactive elements */
.group:hover .w-12 {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
  }
}

#modalOverlay {
  backdrop-filter: blur(4px);
}

[id$="Modal"]::-webkit-scrollbar {
  width: 5px;
}

.modal-content {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.25s ease;
}

.modal-content.show {
  transform: scale(1);
  opacity: 1;
}

/* Scroll-triggered image color effect */
#about-image {
  transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#about-image.color {
  filter: grayscale(0%);
}
