/* ============================================
   Enhanced UI/UX Styles for Zamil Website
   ============================================ */

/* Modern Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Hero Section */
#a7a96062 {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

#a7a96062::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 57, 63, 0.7) 0%, rgba(243, 122, 31, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

#a7a96062:hover::before {
    opacity: 0.8;
}

#a7a96062 > * {
    position: relative;
    z-index: 2;
}

/* Animated Text Elements */
.dmNewParagraph h1,
.dmNewParagraph h2,
.dmNewParagraph h3 {
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Button Styles */
.dmButtonLink {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(243, 122, 31, 0.3);
    border-radius: 50px !important;
}

.dmButtonLink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.dmButtonLink:hover::before {
    width: 300px;
    height: 300px;
}

.dmButtonLink:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(243, 122, 31, 0.5);
}

.dmButtonLink:active {
    transform: translateY(-1px) scale(1.02);
}

/* Service Cards Enhancement */
.flex-element.group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#group_ksj,
#0ad733c4,
#acc551c6,
#30e7dd80 {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#group_ksj::before,
#0ad733c4::before,
#acc551c6::before,
#30e7dd80::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 122, 31, 0.1), transparent);
    transition: left 0.5s ease;
}

#group_ksj:hover::before,
#0ad733c4:hover::before,
#acc551c6:hover::before,
#30e7dd80:hover::before {
    left: 100%;
}

#group_ksj:hover,
#0ad733c4:hover,
#acc551c6:hover,
#30e7dd80:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(243, 122, 31, 0.2);
}

/* SVG Icon Animations */
.graphicWidget svg,
.svg {
    transition: all 0.3s ease;
}

.graphicWidget:hover svg,
.widget-wrapper:hover .svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 10px rgba(243, 122, 31, 0.3));
}

/* Enhanced Navigation */
.unifiednav__item {
    position: relative;
    transition: all 0.3s ease;
}

.unifiednav__item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color_2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.unifiednav__item:hover::after,
.unifiednav__item.dmNavItemSelected::after {
    width: 80%;
}

.unifiednav__item:hover {
    color: var(--color_2);
    transform: translateY(-2px);
}

/* Header Enhancement */
#flex-header {
    background: rgba(44, 57, 63, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Smooth Image Loading */
.imageWidget img {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.imageWidget img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Paragraph Text Enhancement */
.dmNewParagraph p,
.dmNewParagraph span {
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* Divider Enhancement */
.dmDivider {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.dmDividerWrapper:hover .dmDivider {
    border-color: var(--color_2) !important;
    box-shadow: 0 2px 10px rgba(243, 122, 31, 0.3);
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--color_2) !important;
}

/* Loading Animation for Images */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll Reveal Animation */
@keyframes scrollReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex-element.section {
    animation: scrollReveal 0.8s ease-out;
}

/* Contact Info Enhancement */
.graphicWidget a {
    display: inline-block;
    transition: all 0.3s ease;
}

.graphicWidget a:hover {
    transform: scale(1.15) rotate(10deg);
}

/* Mobile Responsive Enhancements */
@media (max-width: 767px) {
    #group_ksj,
    #0ad733c4,
    #acc551c6,
    #30e7dd80 {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .dmButtonLink {
        width: 100%;
        max-width: 280px;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    #group_ksj,
    #0ad733c4,
    #acc551c6,
    #30e7dd80 {
        padding: 25px;
    }
}

/* Enhanced Hamburger Menu */
.hamburgerButton {
    transition: all 0.3s ease;
}

.hamburgerButton:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(243, 122, 31, 0.5));
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus {
    outline: 3px solid rgba(243, 122, 31, 0.5);
    outline-offset: 2px;
}

/* Smooth Section Transitions */
[data-flex-section] {
    transition: opacity 0.5s ease;
}

/* Enhanced Shadow Utilities */
.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}

/* Gradient Overlays */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(243, 122, 31, 0.1) 0%, rgba(44, 57, 63, 0.1) 100%);
    pointer-events: none;
}

/* Pulse Animation for Call-to-Action */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(243, 122, 31, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(243, 122, 31, 0.5);
    }
}

.dmButtonLink.button_2 {
    animation: pulse 2s ease-in-out infinite;
}

/* Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.6s ease-out;
}

/* Enhanced Grid Layout */
[data-layout-grid] {
    gap: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color_5);
}

::-webkit-scrollbar-thumb {
    background: var(--color_2);
    border-radius: 6px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color_1);
}

/* Print Styles */
@media print {
    .hamburgerButton,
    .layout-drawer,
    button {
        display: none !important;
    }
}
