/* ===================================
   MPStudio - Professional Styles
   =================================== */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default focus outline but keep accessibility */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative;
}

/* Navbar Shadow - Professional gradient shadow instead of white line */
.navbar-shadow {
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1),
        0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.navbar-shadow.scrolled {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1),
        0 8px 16px -4px rgba(37, 99, 235, 0.15);
}

/* Service Card Styles */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Status Badges */
.status-available {
    background: linear-gradient(135deg, #10B981, #059669);
}

.status-coming {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

/* Mobile Menu */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Modal Styles */
.modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #3B82F6, #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563EB);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Image Loading */
img {
    loading: lazy;
}

/* Print Styles */
@media print {
    nav, footer, .mobile-menu, .service-card, .floating-whatsapp {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}