/* Light Mode Variables (default) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --modal-bg: #ffffff;
  --input-bg: #f9fafb;
  --input-border: #d1d5db;
}

/* Dark Mode Variables */
html.dark {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --text-primary: #e0e0e0;
  --text-secondary: #9ca3af;
  --border-color: #1f2937;
  --card-bg: #111827;
  --modal-bg: #111827;
  --input-bg: #1f2937;
  --input-border: #374151;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* General element styling with CSS variables */
.bg-primary {
  background-color: var(--bg-primary);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.border-color {
  border-color: var(--border-color);
}

/* Hero Section with abstract background */
.hero-bg {
  background-color: var(--bg-primary);
  background-image: url("https://i.postimg.cc/bvYpvtDY/Chat-GPT-Image-Jul-17-2025-07-34-19-PM.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Card styles */
.service-card,
.about-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

/* Mobile menu slide-in */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  background-color: var(--bg-secondary);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Input styling */
.bg-input-bg {
  background-color: var(--input-bg);
}

.border-input-border {
  border-color: var(--input-border);
}

/* Custom Modal Styles */
#custom-modal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-enter {
  animation: slideIn 0.3s ease-out forwards;
}

/* Form validation styles */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Success and error icon styles */
.success-icon {
  background-color: #10b981;
}

.error-icon {
  background-color: #ef4444;
}

/* Theme Toggle Button Styles */
#theme-toggle {
  min-width: 40px;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

#theme-toggle svg {
  transition: all 0.3s ease;
}

/* Ensure icons are visible */
#theme-toggle-dark-icon,
#theme-toggle-light-icon {
  width: 20px;
  height: 20px;
}
