@tailwind base;
@tailwind components;
@tailwind utilities;

/* Light mode variables */
:root {
  --primary-color: #FD6606;
  --secondary-color: #012E03;
  --background-color: #ffffff;
  --text-color: #333333;
  --card-background: #f8f9fa;
  --border-color: #e1e5e9;
}

/* Dark mode variables */
.dark-mode {
  --background-color: #012E03; /* Using the specified color for dark mode background */
  --text-color: #f1f5f9;
  --card-background: #012903; /* Darker shade for cards and inputs */
  --border-color: #034f03; /* Slightly lighter border color */
}

/* Base styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Custom color classes */
.bg-primary {
  background-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color);
}

.border-primary {
  border-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.border-secondary {
  border-color: var(--secondary-color);
}

/* Card styles for both modes */
.card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  transition: background-color 0.3s, border-color 0.3s;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* Enhanced Toggle button styles - bigger and more noticeable */
.theme-toggle {
  position: fixed;
  top: 6rem; /* Move it down to avoid blocking navbar */
  right: 1.5rem;
  background-color: var(--card-background);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.25rem;
  z-index: 9999; /* Ensure it's above other elements */
}

/* Make it even more prominent on hover */
.theme-toggle:hover {
  transform: scale(1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  background-color: var(--primary-color);
  color: white;
}

/* Ensure visibility on all pages */
.theme-toggle-visible {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    top: 5.5rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    top: 5rem;
    right: 0.75rem;
  }
}

/* Update button styles to use primary color */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e05505; /* Slightly darker shade for hover effect */
  transform: none;
}

/* Form input styles */
.form-input {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

/* Mode-specific gradient for about page header */
.mode-gradient {
  background: linear-gradient(to right, #059669, #047857); /* Green gradient for light mode */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.dark-mode .mode-gradient {
  background: none; /* Remove background in dark mode */
  -webkit-background-clip: unset;
  -webkit-text-fill-color: inherit;
  background-clip: unset;
  color: #f97316; /* Use orange text color in dark mode */
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(253, 102, 6, 0.2);
  outline: none;
}

/* Dark mode specific input adjustments */
.dark-mode .form-input {
  background-color: #012903; /* Even darker for inputs in dark mode */
  border-color: #034f03;
  color: #f1f5f9;
}

/* Dark mode specific adjustments for elements using bg-card */
.dark-mode .bg-card {
  background-color: #012903; /* Match the darker input background */
}

.dark-mode .border-border {
  border-color: #034f03;
}

/* Logo styles for consistent sizing */
.logo-header {
  height: 80px;
  width: 80px;
}

/* About section styles */
.about-section {
  background: linear-gradient(135deg, var(--card-background) 0%, rgba(248, 249, 250, 0.8) 100%);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-mode .about-section {
  background: linear-gradient(135deg, var(--card-background) 0%, rgba(1, 41, 3, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(253, 102, 6, 0.3);
}

.about-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  background-color: var(--card-background);
}

.about-card:hover {
  transform: none;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.dark-mode .about-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(253, 102, 6, 0.3);
}

.about-link:hover {
  transform: scale(1);
  box-shadow: 0 6px 20px rgba(253, 102, 6, 0.4);
}

.about-link i {
  transition: transform 0.3s ease;
}



.about-link:hover i {
  transform: none;
}

/* Mobile responsive header styles */
@media (max-width: 768px) {
  .logo-header {
    height: 80px;
    width: 80px;
  }
}

@media (max-width: 480px) {
  .logo-header {
    height: 80px;
    width: 80px;
  }
}