body, html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

* {
    transition: all 0.3s ease;
}

/* ===== CARD COMPONENTS ===== */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.warp-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    transform: perspective(1000px) rotateX(0) rotateY(0);
}

/* ===== TAB COMPONENTS ===== */
.tab-link.active {
    background-color: #4f46e5;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== LAYOUT UTILITIES ===== */
.flex-grow {
    flex-grow: 1;
}

.mt-auto {
    margin-top: auto;
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.contact-method {
    animation: fadeInUp 0.6s ease forwards;
}

.success-message {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.reviews-track:hover .animate-scroll {
    animation-play-state: paused;
}

/* ===== FORM COMPONENTS ===== */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #4f46e5;
    background-color: #f8fafc;
}

.file-upload.dragover {
    border-color: #4f46e5;
    background-color: #e0e7ff;
}

/* ===== ABOUT SECTION ===== */
.about-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.about-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
}

/* ===== REVIEWS COMPONENTS ===== */
.reviews-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    width: max-content;
}

.review-item {
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.review-item:last-child {
    border-right: none;
}

/* Pause animation on hover */
.reviews-container:hover .reviews-track {
    animation-play-state: paused;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .reviews-track {
        animation-duration: 40s;
    }
    
    .review-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .hero-card h1 {
        font-size: 2.5rem;
    }
}

/* Hover Elevation Effect for Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.service-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Featured card enhancements */
.service-card.featured {
  border-color: #6366f1;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
}

.service-card.featured:hover {
  box-shadow: 
    0 30px 60px -12px rgba(99, 102, 241, 0.25),
    0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Smooth transitions for all interactive elements */
.service-card * {
  transition: all 0.2s ease;
}

.service-card:hover .text-indigo-600 {
  transform: translateX(4px);
}

.service-card:hover .bg-indigo-600 {
  background-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

/* Hover Elevation Effect for Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.service-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Featured card enhancements */
.service-card.featured {
  border-color: #6366f1;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
}

.service-card.featured:hover {
  box-shadow: 
    0 30px 60px -12px rgba(99, 102, 241, 0.25),
    0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Smooth transitions for all interactive elements */
.service-card * {
  transition: all 0.2s ease;
}

.service-card:hover .text-indigo-600 {
  transform: translateX(4px);
}

.service-card:hover .bg-indigo-600 {
  background-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

/* Fix for Most Popular badge being cut off - applies to ALL service cards */
.service-card {
  overflow: visible !important;
}

.service-card .absolute {
  z-index: 20;
}

/* Glow Effect for Service Tabs */
.glow-on-hover {
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000;
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Customize for your active/inactive states */
.glow-on-hover.active {
    background: #4f46e5 !important;
}

.glow-on-hover.active:after {
    background: #4f46e5 !important;
}

.glow-on-hover:not(.active):after {
    background: #f3f4f6 !important; /* Matches your bg-gray-200 */
}

.glow-on-hover:not(.active) {
    color: #374151 !important; /* Matches your text-gray-800 */
    background: #f3f4f6 !important;
}

.glow-on-hover.active {
    color: white !important;
}

/* Hover states */
.glow-on-hover:hover:not(.active) {
    transform: translateY(-2px);
}

.glow-on-hover.active:hover {
    transform: translateY(-2px);
    background: #4338ca !important;
}

.glow-on-hover.active:hover:after {
    background: #4338ca !important;
}

@font-face {
  font-family: 'Handjet-Black';
  src: url('../fonts/Handjet-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ===== HERO IMAGE OPTIMIZATION ===== */

/* Hero image container - doesn't affect warp-card */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Ensure it stays behind content */
}

/* Hero image styles - specific targeting */
.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  
  /* Performance optimizations only */
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  
  /* Smooth loading - doesn't affect warp-card */
  opacity: 0;
  animation: optimizedFadeIn 1s ease-out 0.2s forwards;
}

/* Separate fade-in animation to avoid conflicts */
@keyframes optimizedFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero overlay optimization */
.hero-overlay-optimized {
  transform: translateZ(0);
  animation: optimizedOverlayFade 0.6s ease-out;
}

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

/* Content entry animation - works with warp-card */
.hero-content-optimized {
  animation: optimizedContentEnter 0.8s ease-out 0.4s both;
}

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

/* Blur-up technique for hero image */
.hero-image-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1e3a8a, #3730a3);
  opacity: 1;
  z-index: 1;
  transition: opacity 0.8s ease-out;
}

.hero-image-loaded::before {
  opacity: 0;
}

/* warp-card stays on top and functional */
.warp-card {
  z-index: 10;
  position: relative;
}

/* ===== PERFORMANCE UTILITIES ===== */

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

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

.smooth-render {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Form Validation Styles */
.error-message {
    transition: all 0.3s ease;
}

.border-red-500 {
    border-color: #ef4444;
}

.success-message {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload.dragover {
    border-color: #4f46e5;
    background-color: #eef2ff;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}