/* =================================================================
   Qarmeed Construction - Main Stylesheet
   Company: Noura Mousa Mubarak Marzouq Contracting
   ================================================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* =================================================================
   BASE STYLES
   ================================================================= */

body {
    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
}

/* Hide Blogger navbar elements */
#navbar, #navbar-iframe, #search-box, .search-box {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

div.b-mobile {
    display: none;
}

/* =================================================================
   TEXT ENHANCEMENT STYLES
   ================================================================= */

.enhanced-text-primary {
    color: #000000 !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enhanced-text-secondary {
    color: #1a1a1a !important;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.enhanced-text-description {
    color: #2d2d2d !important;
    font-weight: 600;
    line-height: 1.7;
}

.enhanced-text-light {
    color: #404040 !important;
    font-weight: 500;
    line-height: 1.6;
}

.enhanced-heading {
    color: #000000 !important;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enhanced-subheading {
    color: #1a1a1a !important;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.enhanced-paragraph {
    color: #2d2d2d !important;
    font-weight: 600;
    line-height: 1.7;
}

.enhanced-button {
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* =================================================================
   IMAGE OPTIMIZATION & LOADING
   ================================================================= */

img {
    opacity: 1;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* =================================================================
   HERO CAROUSEL STYLES
   ================================================================= */

.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.75), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    margin-bottom: 2rem;
    animation: titleFloat 3s ease-in-out infinite alternate;
    color: #ffffff !important;
}

@keyframes titleFloat {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

.hero-contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-contact-btn {
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-contact-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
}

.call-btn {
    background: linear-gradient(45deg, #2563EB, #1D4ED8);
}

/* =================================================================
   WORKS CAROUSEL STYLES
   ================================================================= */

.works-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.works-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1s ease-in-out;
    transform: translateX(100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.works-slide.prev {
    transform: translateX(-100%);
}

.works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.85), rgba(0,0,0,0.7));
}

.works-content {
    text-align: center;
    color: white;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.works-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: iconRotate 4s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1.2); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.works-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    color: #ffffff !important;
}

.works-description {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: #ffffff !important;
}

.works-contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.works-contact-btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.works-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* =================================================================
   GALLERY STYLES
   ================================================================= */

.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }
.gallery-item:nth-child(14) { animation-delay: 1.4s; }
.gallery-item:nth-child(15) { animation-delay: 1.5s; }
.gallery-item:nth-child(16) { animation-delay: 1.6s; }
.gallery-item:nth-child(17) { animation-delay: 1.7s; }
.gallery-item:nth-child(18) { animation-delay: 1.8s; }
.gallery-item:nth-child(19) { animation-delay: 1.9s; }
.gallery-item:nth-child(20) { animation-delay: 2.0s; }
.gallery-item:nth-child(21) { animation-delay: 2.1s; }
.gallery-item:nth-child(22) { animation-delay: 2.2s; }
.gallery-item:nth-child(23) { animation-delay: 2.3s; }
.gallery-item:nth-child(24) { animation-delay: 2.4s; }
.gallery-item:nth-child(25) { animation-delay: 2.5s; }
.gallery-item:nth-child(26) { animation-delay: 2.6s; }
.gallery-item:nth-child(27) { animation-delay: 2.7s; }
.gallery-item:nth-child(28) { animation-delay: 2.8s; }
.gallery-item:nth-child(29) { animation-delay: 2.9s; }
.gallery-item:nth-child(30) { animation-delay: 3.0s; }
.gallery-item:nth-child(31) { animation-delay: 3.1s; }
.gallery-item:nth-child(32) { animation-delay: 3.2s; }
.gallery-item:nth-child(33) { animation-delay: 3.3s; }
.gallery-item:nth-child(34) { animation-delay: 3.4s; }
.gallery-item:nth-child(35) { animation-delay: 3.5s; }
.gallery-item:nth-child(36) { animation-delay: 3.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-contact-btn {
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    font-size: 1.1rem;
}

.gallery-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* =================================================================
   SERVICE GRADIENTS & COLORS
   ================================================================= */

.service-1 { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.service-2 { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.service-3 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.service-4 { background: linear-gradient(135deg, #6B7280, #374151); }
.service-5 { background: linear-gradient(135deg, #F97316, #EA580C); }
.service-6 { background: linear-gradient(135deg, #6366F1, #4338CA); }
.service-7 { background: linear-gradient(135deg, #10B981, #059669); }
.service-8 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.service-9 { background: linear-gradient(135deg, #EAB308, #CA8A04); }
.service-10 { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.service-11 { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.service-12 { background: linear-gradient(135deg, #EC4899, #BE185D); }
.service-13 { background: linear-gradient(135deg, #6B7280, #374151); }
.service-14 { background: linear-gradient(135deg, #10B981, #059669); }
.service-15 { background: linear-gradient(135deg, #059669, #047857); }

/* =================================================================
   SERVICES DROPDOWN STYLES
   ================================================================= */

.services-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 20;
    max-height: 400px;
    overflow-y: auto;
}

.services-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    transform: translateX(5px);
}

.dropdown-trigger {
    padding: 18px 30px;
    background: linear-gradient(135deg, #374151, #4B5563);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* =================================================================
   SERVICE CARD STYLES
   ================================================================= */

.phone-container {
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    background: white;
    border-radius: 20px;
    padding: 15px;
    min-height: 400px;
}

.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.hidden {
    display: none;
}

.show {
    display: block;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        font-weight: 900;
    }

    .hero-contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-contact-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .works-title {
        font-size: 2.2rem;
        font-weight: 900;
    }

    .works-description {
        font-size: 1.2rem;
    }

    .gallery-item .text-2xl {
        font-size: 1.8rem;
        font-weight: 800;
    }

    .gallery-item .text-lg {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .gallery-contact-btn {
        padding: 15px 25px;
        font-size: 1rem;
        font-weight: 700;
    }

    .dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
    }

    .services-dropdown:hover .dropdown-content {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .hero-contact-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .gallery-item img {
        height: 300px;
    }

    .gallery-item .p-6 {
        padding: 1rem;
    }
}

/* =================================================================
   FLOATING CONTACT ICONS
   ================================================================= */

.floating-contact-icons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.floating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-icon:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.location-icon {
    background: linear-gradient(135deg, #EA4335, #C5221F);
}

.location-icon:hover {
    background: linear-gradient(135deg, #C5221F, #A50E0E);
}

/* Pulse animation for icons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-icon {
    animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-contact-icons {
        bottom: 15px;
        left: 15px;
        gap: 12px;
    }

    .floating-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}
