/* Custom styles for Sabaat Arch website */

/* Smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-pulse-gentle {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 184, 0, 0.1);
}

/* Golden gradient text */
.gradient-text {
    background: linear-gradient(45deg, #FFB800, #FFA000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button styles */
.btn-golden {
    background: linear-gradient(45deg, #FFB800, #FFA000);
    color: #000;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-golden:hover {
    background: linear-gradient(45deg, #FFA000, #FF8F00);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.3);
}

.btn-outline-golden {
    border: 2px solid #FFB800;
    color: #FFB800;
    background: transparent;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-golden:hover {
    background: #FFB800;
    color: #000;
    transform: translateY(-2px);
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #FFB800;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA000;
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Form enhancements */
.form-input {
    background: rgba(31, 41, 55, 0.8);
    border: 2px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #FFB800;
    background: rgba(31, 41, 55, 1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

/* Project filter animation */
.project-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-item.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFB800;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero section enhancements */
.hero-bg {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 184, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 184, 0, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0F0F0F 0%, #1a1a1a 100%);
}

/* Testimonial card enhancements */
.testimonial-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(255, 184, 0, 0.3);
    transform: translateY(-5px);
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(31, 41, 55, 1) 100%);
}

/* Footer enhancements */
.footer-link {
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #FFB800;
    padding-left: 5px;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 300px;
}

/* WhatsApp button pulse animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-golden,
    .btn-outline-golden {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-800 {
        background-color: #000 !important;
    }
    
    .text-gray-400 {
        color: #fff !important;
    }
}

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

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #0F0F0F;
        color: #ffffff;
    }
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #FFB800;
    outline-offset: 2px;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.border-gradient {
    border: 1px solid;
    border-image: linear-gradient(45deg, #FFB800, #FFA000) 1;
}

/* Compact Navigation Buttons */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.3);
    background: rgba(31, 41, 55, 0.5);
    color: rgba(156, 163, 175, 1);
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.2);
    border-color: rgba(255, 184, 0, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
}
