/* Brick Byte Custom Styles */

/* Typography gradient */
.gradient-text {
  background: linear-gradient(90deg, #fff, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html:not(.dark) .gradient-text {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass effect for nav and mobile menu */
html:not(.dark) nav {
  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html:not(.dark) #mobileMenu {
  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html.dark nav {
  background-color: rgba(23, 23, 23, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html.dark #mobileMenu {
  background-color: rgba(23, 23, 23, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Light mode overrides */
html:not(.dark) body {
  background-color: #ffffff !important;
  color: #171717 !important;
}
html:not(.dark) .bg-neutral-800 {
  background-color: #f3f4f6 !important;
}
html:not(.dark) .bg-neutral-900 {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
html:not(.dark) .text-primary {
  color: #171717 !important;
}
html:not(.dark) .text-secondary {
  color: #525252 !important;
}
html:not(.dark) .border-neutral-700,
html:not(.dark) .border-neutral-800 {
  border-color: #d1d5db !important;
}
html:not(.dark) #theme-toggle:hover {
  background-color: #f3f4f6 !important;
}
html:not(.dark) nav a {
  color: #171717 !important;
}
html:not(.dark) nav .bg-accent {
  color: #ffffff !important;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 0.375rem;
  font-weight: 500;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #404040;
  border-radius: 0.375rem;
  font-weight: 500;
}

/* Service Cards */
.service-card {
  background-color: #171717;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  transform: translateY(-0.5rem);
  border: 1px solid #3b82f6;
}
.service-card:hover i {
  color: #3b82f6;
}
.service-card:hover h3 {
  color: #ffffff;
}

/* Project Cards */
.project-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background-color: #262626;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 23, 23, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

/* Portfolio Hover Effects */
#work .group:hover img {
  transform: scale(1.05);
}
#work .group:hover h3 {
  color: #ffffff;
}
#work a:hover {
  color: #3b82f6;
}

/* Testimonials */
.testimonial-card {
  background-color: #171717;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #404040;
  transition: transform 0.3s ease-out;
}
.testimonial-card:hover {
  transform: translateY(-0.5rem);
  border-color: #3b82f6;
}
.testimonial-card img {
  border-radius: 9999px;
}

/* Form Inputs */
.form-input {
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: #171717;
  border: 1px solid #404040;
  color: #ffffff;
}
.form-input:focus {
  outline: none;
  border-color: #3b82f6;
}
.form-label {
  color: #ffffff;
  font-weight: 500;
}
html:not(.dark) .form-input {
  background-color: #ffffff !important;
  border-color: #d1d5db !important;
  color: #171717 !important;
}
html:not(.dark) .form-label {
  color: #171717 !important;
}
html:not(.dark) .cta-section {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
html:not(.dark) .cta-heading {
  color: #171717 !important;
}
html:not(.dark) #contact p {
  color: #525252 !important;
}
html:not(.dark) #contact label {
  color: #171717 !important;
}
html:not(.dark) #contact h2 {
  color: #171717 !important;
}

/* CTA Section Enhancements */
#contact {
  scroll-margin-top: 5rem;
}
#contact input,
#contact textarea {
  transition: all 0.2s ease;
}
#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
#contact button {
  transition: all 0.25s ease;
}
#contact button:hover {
  background-color: #2563eb;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Dark-mode toggle button styling */
#theme-toggle {
  color: #fff;
  background: transparent;
}
#theme-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}
html:not(.dark) #theme-toggle {
  color: #171717;
}
html:not(.dark) #theme-toggle:hover {
  background-color: #f3f4f6 !important;
}
#theme-toggle i {
  width: 1.25rem;
  height: 1.25rem;
}

#mobile-theme-toggle {
  color: #fff;
  background: transparent;
}
#mobile-theme-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}
html:not(.dark) #mobile-theme-toggle {
  color: #171717;
}
html:not(.dark) #mobile-theme-toggle:hover {
  background-color: #f3f4f6 !important;
}

/* Mobile dark mode toggle */
#mobile-theme-toggle {
  color: #fff;
  background: transparent;
  transition: background-color 0.2s ease;
}
#mobile-theme-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}
html:not(.dark) #mobile-theme-toggle {
  color: #171717;
}
html:not(.dark) #mobile-theme-toggle:hover {
  background-color: #f3f4f6 !important;
}
