@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(to right, #1a1a2e, #16213e); /* Dark mode gradient background */
  color: #e0e0e0; /* Dark mode text color */
}

.animate-slide-in {
  animation: slideIn 0.5s ease-in-out;
}

.animate-zoom-in {
  animation: zoomIn 0.5s ease-in-out;
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(22, 33, 62, 0.9), #1a1a2e); /* Removed top hue */
  overflow: hidden; /* Ensure child elements don't overflow */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 33, 62, 0.6), url("images/hero-bg.jpg") center/cover;
  z-index: -1;
  filter: blur(5px);
  /* Added semi-transparent overlay for better text readability */
}

.hero-content {
  /* New styles for content alignment and animation */
  animation: fadeInUp 1s ease-out;
}

.cta-button {
  /* New CTA button styles */
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #1e90ff; /* Dodger blue */
  color: white;
  border: none;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #1c7ed6; /* Darker blue on hover */
  transform: translateY(-2px);
}

.cta-button:active {
  background-color: #1a6fb3; /* Even darker blue on click */
  transform: translateY(0);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(26, 26, 46, 0.5); /* Set to 50% transparent */
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.nav.transparent {
  background: rgba(26, 26, 46, 0.5);
}

.nav.solid {
  background: rgba(26, 26, 46, 0.95);
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #1e90ff;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.profile-img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.section {
  padding: 3rem 1rem;
  background: #0f3460; /* Dark mode section background color */
  text-align: center;
}

footer {
  position: relative;
  z-index: 2; /* Ensures footer content sits above the gradient */
  background: linear-gradient(135deg, #1a1a2e, #16213e, #1a1a2e); /* Enhanced gradient background */
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.showcase {
  background-color: #1a1a2e; /* Ensures continuity with hero section */
  display: grid;
  position: relative; /* Added to position the gradient overlay */
  overflow: hidden; /* Ensure the gradient does not overflow */
}

.showcase::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 200px; /* Adjust height as needed for the fade effect */
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0), rgba(26, 26, 46, 1));
  pointer-events: none; /* Allows clicks to pass through */
  z-index: 1; /* Ensures the gradient sits above the showcase content */
}

.card {
  background: rgba(30, 30, 60, 0.95); /* Slightly lighter background for cards */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-img {
  height: 100px; /* Reduced height for profile picture */
  width: 100px; /* Added width to make the image square */
  border-radius: 50%; /* Make the image circular */
  object-fit: cover;
  margin: 0 auto 1rem; /* Center the image and adjust margin */
  transition: transform 0.3s ease;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-header img {
  height: 100px; /* Reduced height for profile picture */
  width: 100px; /* Added width to make the image square */
  border-radius: 50%; /* Make the image circular */
  object-fit: fill;
  margin-bottom: 1rem; /* Space between image and title */
  transition: transform 0.3s ease;
}

.card-header h2 {
  font-size: 1.25rem; /* Adjusted font size */
  margin-top: 0.5rem;
  text-align: center;
  margin-bottom: 0.5rem; /* Reduced space between title and badges */
}

.card h2 {
  font-size: 1.25rem; /* Adjusted font size to match new image size */
  text-align: center; /* Center the title */
}

.card p {
  color: #b0b0b0; /* Light gray color for the card description */
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.card ul {
  color: #d0d0d0; /* Slightly darker gray for the list items */
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.card a {
  color: #1e90ff; /* Dodger blue for the read more link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.card a:hover {
  color: #1c7ed6; /* Darker blue on hover */
}

.read-more {
  background-color: #1e90ff; /* Dodger blue */
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.read-more:hover {
  background-color: #1c7ed6; /* Darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.read-more:active {
  background-color: #1a6fb3; /* Even darker blue on click */
  transform: translateY(0);
  box-shadow: none;
}

.read-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.5);
}

.card-footer {
  margin-top: auto; /* Pushes the footer to the bottom */
  display: flex;
  justify-content: flex-end; /* Aligns the button to the right */
}

.list-disc {
  list-style-type: disc;
}

.list-inside {
  list-style-position: inside;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 1rem;

  @media (min-width: 768px) {
    justify-content: flex-end;
    margin-top: 0;
  }
}

.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

.quick-links {
  display: flex;
  justify-content: center;
  margin-top: 1rem;

  @media (min-width: 768px) {
    justify-content: flex-start;
    margin-top: 0;
  }
}

.quick-links a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.quick-links a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    margin-top: 1rem;
  }

  .quick-links {
    margin-top: 1rem;
  }
}

footer p {
  margin-bottom: 1rem;

  @media (min-width: 768px) {
    margin-bottom: 0;
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.sub-card {
  background: linear-gradient(to right, rgba(255, 223, 0, 0.2), rgba(255, 223, 0, 0));
  border-left: 4px solid #ffdf00; /* Gold color */
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  color: #664d03; /* Improved dark amber text color for better contrast */
  font-size: 0.875rem; /* Equivalent to Tailwind's text-sm */
  border-radius: 0.375rem; /* Rounded corners */
  margin-bottom: 1rem; /* Added to create space below the sub-card */
}

.contact {
  padding: 4rem 1rem;
  background: linear-gradient(to right, #1a1a2e, #16213e); /* Updated to match site gradient */
  transition: background-color 0.3s ease;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.contact p {
  color: #b0b0b0;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  padding: 1rem; /* Added padding for better spacing */
}

.contact-form label {
  color: #e0e0e0;
  margin-bottom: 0.5rem; /* Added margin for spacing */
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1a2e;
  border: 1px solid #333;
  border-radius: 0.375rem; /* Added border-radius for rounded corners */
  padding: 0.75rem 1rem; /* Added padding for better input size */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added transition for smooth state changes */
  margin-bottom: 1rem; /* Added margin-bottom for spacing between fields */
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #1e90ff;
  box-shadow: 0 0 5px rgba(30, 144, 255, 0.5); /* Added box-shadow on hover for visual feedback */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1e90ff;
  outline: none;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.7); /* Added box-shadow on focus for better visibility */
}

.contact-form button.cta-button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem; /* Enhanced padding for a larger clickable area */
  border-radius: 0.375rem; /* Added border-radius for consistency */
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for smooth hover effects */
}

.contact-form button.cta-button:hover {
  background-color: #1c7ed6; /* Darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.contact-form button.cta-button:active {
  background-color: #1a6fb3; /* Even darker blue on click */
  transform: translateY(0);
  box-shadow: none;
}

.contact-wrapper {
  /* ...existing code... */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
  }

  .contact-title,
  .contact-form-container {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 2rem 1rem;
  }

  .contact h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%; /* Changed from 'full' to '100%' for proper width */
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem; /* Adjusted font size for smaller screens */
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Individual Toast */
.toast {
  min-width: 250px;
  padding: 1rem;
  border-radius: 0.375rem;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  /* Add fadeIn animation */
  animation: fadeIn 0.5s forwards;
}

/* Success Toast */
.toast.success {
  background-color: #4caf50; /* Green */
}

/* Error Toast */
.toast.error {
  background-color: #f44336; /* Red */
}

/* Hide Toast */
.toast.hide {
  opacity: 0;
  transform: translateY(-20px);
  /* Add fadeOut animation */
  animation: fadeOut 0.5s forwards;
}

/* Define fadeIn animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* Define fadeOut animation */
@keyframes fadeOut {
  from {
    opacity: 0.9;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: rgba(0, 0, 0, 0.5); /* Common dark background */
  padding: 0.25rem 0.5rem; /* Add padding to create space around the badges */
  border-radius: 0.375rem; /* Rounded corners */
  width: fit-content; /* Ensure the background only covers the badges */
  margin: 0 auto; /* Center the badges */
  margin-bottom: 0.5rem;
}

.badge {
  background-color: #1e90ff; /* Dodger blue */
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  position: relative; /* Required for tooltip positioning */
}

.badge-icon:hover {
  transform: scale(1.2);
}

.badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
