/* ==========================================================================
   Utility Classes and Additional Styles
   ========================================================================== */

/* ==========================================================================
   Accent Color Utility Classes for Project Cards
   ========================================================================== */

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

.accent-bg-light {
  background: var(--accent-light);
}

.accent-bg-gradient {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

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

.accent-text-dark {
  color: var(--accent-dark);
}

.accent-text-light {
  color: var(--accent-light);
}

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

.accent-tag {
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent-dark);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

:root.dark .accent-tag {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-light);
  border-color: rgba(245, 158, 11, 0.4);
}

.accent-hover:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-1px);
}

/* ==========================================================================
   Notification System Styles
   ========================================================================== */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  max-width: 300px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Tooltip Styles
   ========================================================================== */

.tooltip {
  position: absolute;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Ripple Effect Styles
   ========================================================================== */

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* ==========================================================================
   Enhanced Input States
   ========================================================================== */

.input-focused {
  transform: scale(1.02);
}

input.valid,
textarea.valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input.invalid,
textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
  position: relative;
  color: transparent !important;
}

.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   Breadcrumb Styles
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.breadcrumb-link {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
  color: var(--text-tertiary);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Enhanced Focus States for Accessibility
   ========================================================================== */

.btn-primary:focus-visible,
.nav-link:focus-visible,
.mobile-nav-item:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid rgba(217, 119, 6, 0.6);
  outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .floating-element,
  .mobile-bottom-nav,
  .theme-toggle,
  .scroll-indicator,
  header {
    display: none !important;
  }
  
  .hero-background {
    background: none !important;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .card,
  .project-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Container Queries Support
   ========================================================================== */

@container (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.desktop-only {
  display: block;
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-only {
    display: block;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Font Family Utilities */
.font-playfair {
  font-family: "Playfair Display", serif;
}

.font-roboto-slab {
  font-family: "Roboto Slab", "Noto Sans", sans-serif;
}

.font-inter {
  font-family: "Inter", sans-serif;
}

.font-noto-sans {
  font-family: "Noto Sans", sans-serif;
}

/* ==========================================================================
   Themed Text Utility Classes
   ========================================================================== */

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

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

.themed-text-tertiary {
  color: var(--text-tertiary);
}

.themed-text-accent {
  color: var(--accent-color);
}

.themed-bg-primary {
  background: var(--bg-primary);
}

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

.themed-bg-tertiary {
  background: var(--bg-tertiary);
}

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

/* ==========================================================================
   Services Page Specific Background and Visual Enhancements
   ========================================================================== */

/* Subtle background pattern for services page */
body .services-page-bg {
  position: relative;
}

body .services-page-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(217, 119, 6, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(217, 119, 6, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

:root.dark body .services-page-bg::before {
  background: 
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
}

/* Enhanced service section specific spacing */
#services {
  position: relative;
  z-index: 1;
}

/* Service hero section enhanced styling */
.services-hero {
  position: relative;
  overflow: hidden;
}

.services-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(217, 119, 6, 0.01) 50%, transparent 100%);
  pointer-events: none;
}

/* Improved card grid spacing for services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Service card enhanced hover state - removed to prevent conflicts with components.css */

/* Process steps enhanced visual hierarchy */
.process-steps {
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-color) 15%, var(--accent-color) 85%, transparent 100%);
  opacity: 0.4;
  z-index: 1;
}

@media (max-width: 768px) {
  .process-steps::before {
    display: none;
  }
}
