/* Custom CSS Styles for SantehMaster */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}
.max-w-9xl {
  max-width: 1600px;
}
/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, 
        #3B82F6 0%, 
        #1E40AF 25%, 
        #1E3A8A 50%, 
        #3730A3 75%, 
        #6366F1 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.3;
}

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

/* Pulse Animation for CTA Buttons */
.pulse-button {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    }
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3B82F6, #1E40AF);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563EB, #1E3A8A);
}

/* Form Styles */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Loading Animation for Forms */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 500px;
}

/* Backdrop Blur Support */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Custom Shadow Classes */
.shadow-premium {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.shadow-luxury {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(59, 130, 246, 0.05);
}

/* Text Gradient Effects */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Parallax Effect for Hero Section */
.parallax {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1e293b;
        color: #f8fafc;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .hero-gradient {
        background: #3B82F6 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    button {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 640px) {
    .hero-gradient {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    h1, h2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Improved touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better mobile spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet Styles */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-gradient {
        padding-top: 10rem;
        padding-bottom: 6rem;
    }
    
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-gradient {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .backdrop-blur-sm {
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

/* Hover effects for desktop only */
@media (hover: hover) and (pointer: fine) {
    .hover-lift:hover {
        transform: translateY(-4px);
        transition: transform 0.3s ease;
    }
    
    .hover-glow:hover {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
        transition: box-shadow 0.3s ease;
    }
}

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Loading state animations */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Smooth reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom selection colors */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #1e293b;
}

::-moz-selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #1e293b;
}

/* Enhanced button styles */
.btn-gradient {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    transition: left 0.3s ease;
}

.btn-gradient:hover::before {
    left: 0;
}

.btn-gradient span {
    position: relative;
    z-index: 1;
}

/* Utility classes for spacing and layout */
.space-y-responsive > * + * {
    margin-top: clamp(1rem, 2vw, 2rem);
}

.text-responsive {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}

/* Screen reader only content */
.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;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Mobile device specific styles */
.mobile-device button {
    min-height: 48px;
    min-width: 48px;
}

.mobile-device input,
.mobile-device textarea {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Fonts loaded class */
.fonts-loaded {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Enhanced form validation styles */
.form-field {
    position: relative;
}

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

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

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Progress indicator */
.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    width: 0;
    transition: width 0.3s ease;
}

/* Cookie banner styles */
.cookie-banner {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification toast styles */
.toast {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}