/* Custom Styles for Omar Integrated Services */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body Reset */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Sticky Effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Overlay */
#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

#mobile-menu.active::before {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section Parallax Effect */
.hero-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-image {
    transition: transform 0.5s ease;
}

/* Project Card Hover Effects */
.project-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image {
    transition: transform 0.5s ease;
}

/* FAQ Accordion Animations */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.fade-in-delay-4 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

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

/* Fade In On Scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
#scroll-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#scroll-top:hover {
    transform: translateY(-4px);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #14B8A6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Loading Animation for Form Submit */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    #scroll-top,
    .cta-button {
        display: none;
    }
}

/* Accessibility - Focus Visible */
*:focus-visible {
    outline: 2px solid #14B8A6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-teal {
        background-color: #0d9488;
    }
    
    .text-teal {
        color: #0d9488;
    }
}

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

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired */
    /*
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    */
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Glow Effect */
.glow-on-hover {
    transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Image Lazy Loading Placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Selection Color */
::selection {
    background-color: #14B8A6;
    color: white;
}

::-moz-selection {
    background-color: #14B8A6;
    color: white;
}

/* Smooth Transitions for Links */
a {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Card Shadow Levels */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Grid Hover Effect */
.grid-hover-effect > * {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid-hover-effect:hover > *:not(:hover) {
    opacity: 0.6;
    transform: scale(0.98);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #14B8A6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border Gradient */
.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #14B8A6, #06b6d4);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

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

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

/* Responsive Container */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 4rem;
    }
}
