.bg-gray-800 {
    --tw-bg-opacity: 1 !important;
    background-color: rgb(0, 142, 236) !important;
}

/* Base layout */
.homepage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F3F4F6; /* Light gray background */
  color: #333333;
}

/* Hero/Header Styling */
.hero {
  background: #1F2937; /* Secondary-dark */
  color: #fff;
  text-align: center;
}

/* Navigation Styling */
.nav a {
  transition: color 0.3s, background-color 0.3s;
  border-radius: 0.375rem; /* rounded-md */
}
.nav a.active {
  background-color: #4B5563; /* Medium gray to show active state */
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Content area */
#content-area {
  flex-grow: 1;
  padding: 0.1rem 0rem;
}

/* Footer */
.footer {
  background: #111827; /* Primary-dark */
  color: #030303;
  text-align: center;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Project card hover */
.project-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Search Box Styling */
.search-box {
  position: relative;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-input {
  position: relative;
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.8), rgba(31, 41, 55, 0.8));
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(79, 70, 229, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.search-input::placeholder {
  color: rgba(156, 163, 175, 0.7);
}

.search-input:hover {
  border-color: rgba(79, 70, 229, 0.5);
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(31, 41, 55, 0.95));
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.search-input:focus {
  border-color: rgba(79, 70, 229, 0.8);
  background: linear-gradient(135deg, rgba(55, 65, 81, 1), rgba(31, 41, 55, 1));
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 8px 16px rgba(79, 70, 229, 0.2);
}

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px rgba(31, 41, 55, 0.8) inset !important;
  -webkit-text-fill-color: white !important;
}

.search-icon {
  animation: fadeIn 0.5s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header CTA hover animation */
.header-cta {
  transition: transform 180ms ease, box-shadow 200ms ease, filter 180ms ease;
}
.header-cta:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 12px 22px -6px rgba(79, 70, 229, 0.35), 0 6px 10px -6px rgba(147, 51, 234, 0.25);
  filter: brightness(1.03);
}
.header-cta:focus {
  transform: translateY(-1px) scale(1.03);
}
.header-cta svg {
  transition: transform 180ms ease;
}
.header-cta:hover svg {
  transform: translateY(-1px);
}

/* Hero CTA buttons hover animation */
.hero-cta-btn {
  transition: transform 200ms ease, box-shadow 220ms ease, filter 200ms ease !important;
}
.hero-cta-btn.hero-cta-primary:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 16px 32px -8px rgba(59, 130, 246, 0.5), 0 8px 16px -8px rgba(6, 182, 212, 0.4) !important;
  filter: brightness(1.08);
}
.hero-cta-btn.hero-cta-secondary:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 16px 32px -8px rgba(255, 255, 255, 0.3), 0 8px 16px -8px rgba(255, 255, 255, 0.2) !important;
}
.hero-cta-btn.hero-cta-tertiary:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 16px 32px -8px rgba(255, 255, 255, 0.25), 0 8px 16px -8px rgba(255, 255, 255, 0.15) !important;
  filter: brightness(1.05);
}
.hero-cta-btn:focus {
  transform: translateY(-1px) scale(1.04);
}

/* Contact Page Polishing */
.contact-page .page-header h2 {
  position: relative;
}
.contact-page .page-header h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
}

