/* Custom styles for Shams AL Rafaa Construction Website */

/* Header Styles */
.top-header-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.nav-bar {
    background-color: #000000;
}

.header-icon {
    color: #e20f0f;
}

.nav-link {
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link.active {
    color: #e20f0f;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e20f0f;
}

/* Primary theme colors */
:root {
    --primary-color: #e20f0f;
    --primary-dark: #b40c0c;
    --primary-light: #f25959;
    --secondary-color: #ff9800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
}

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cards with colored bars */
.service-card, .gallery-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card::before, .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.service-card:hover, .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card .card-content, .gallery-item .card-content {
    padding: 1.5rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    /* padding: 4rem 0; */
    position: relative;
    overflow: hidden;
}

/* Services Hero Section */
.services-hero-section {
    position: relative;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/2024/03/01_2026-bm-preview-ezgif.com-resize.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.services-hero-bg .services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .services-hero-section {
        min-height: 300px;
    }
    
    .services-hero-content {
        min-height: 300px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

/* Service icons */
.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile header improvements */
@media (max-width: 768px) {
    /* Top header bar mobile styles */
    .top-header-bar {
        padding: 0.5rem 0;
    }
    
    /* Better text wrapping on mobile */
    .top-header-bar a {
        word-break: break-word;
    }
    
    /* Navigation bar mobile styles */
    nav {
        padding: 0;
    }
    
    /* Mobile menu button */
    #mobile-menu-button {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

    .service-card, .gallery-item {
        margin-bottom: 1rem;
    }
}

/* Slider Styles */
.slider-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text overlay for better readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide > div {
    position: relative;
    z-index: 2;
}

.slide-active {
    opacity: 1;
    transform: translateX(0);
}

.slide-prev {
    opacity: 0;
    transform: translateX(-100%);
}

.slide-next {
    opacity: 0;
    transform: translateX(100%);
}

/* Background Images for Each Slide */
.slide-bg-1 {
    background-image: url('../uploads/2024/03/01_2026-bm-preview-ezgif.com-resize.jpg');
}

.slide-bg-2 {
    background-image: url('../uploads/2024/03/01_edl-1150-preview-ezgif.com-resize.jpg');
}

.slide-bg-3 {
    background-image: url('../uploads/elementor/thumbs/GM_1-qkkm3riarovzuv88h9zn506tndrg7qv446nupdcgc8.jpg');
}

/* Text Shadow for Better Readability */
.text-shadow-lg {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Slide Indicators */
.slide-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background-color: white;
    border-color: white;
    transform: scale(1.2);
}

.slide-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Dark Features Section */
.features-dark-section {
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.features-dark-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.features-dark-section > div > div:first-child p {
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Feature Dark Boxes */
.feature-dark-box {
    background-color: transparent;
    border: 2px solid #e20f0f;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-dark-box:hover {
    border-color: #f25959;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(226, 15, 15, 0.3);
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.feature-dark-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.feature-dark-box p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    opacity: 0.95;
}

.feature-read-more {
    color: #e20f0f;
    font-weight: 700;
    text-decoration: underline;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.feature-read-more:hover {
    color: #f25959;
    text-decoration: underline;
}

/* Diagonal Bottom Edge */
.diagonal-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #ffffff;
    clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

/* Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #e20f0f;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(226, 15, 15, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-button:hover {
    background-color: #f25959;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(226, 15, 15, 0.6);
}

.fab-button:active {
    transform: scale(0.95);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-item:nth-child(3) {
    grid-column: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e20f0f;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.5;
}

/* Quality Service Section */
.text-pink-600 {
    color: #e20f0f;
}

/* Quality Service Section Image */
.quality-service-section img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.quality-service-section img:hover {
    transform: scale(1.02);
}

/* Trusted Clients Dark Theme */
.trusted-clients-dark {
    background-color: #1a1a1a;
    background-color: #2d2d2d;
}

.client-logo-dark {
    /* filter: brightness(0) invert(1) contrast(1.2); */
    opacity: 1;
    transition: all 0.3s ease;
}

.client-logo-dark:hover {
    opacity: 1;
    filter: brightness(0) invert(1) brightness(1.2);
    transform: scale(1.1);
}

.client-logo-white {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.client-logo-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .floating-action-buttons {
        bottom: 20px;
        right: 20px;
    }

    .fab-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .trusted-clients-dark h3 {
        font-size: 2rem;
    }
}

/* Working Since Section - Red Theme with Background Image */
.working-since-section {
    position: relative;
    /* min-height: 400px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.working-since-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/2024/03/01_2026-bm-preview-ezgif.com-resize.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.working-since-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.working-since-section h2,
.working-since-section h3 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.working-since-section .text-red-600 {
    color: #dc2626;
}

.working-since-section .btn-secondary {
    background-color: white;
    color: #dc2626;
    border-color: white;
}

.working-since-section .btn-secondary:hover {
    background-color: #f3f4f6;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .working-since-section {
        min-height: 350px;
        padding: 3rem 0;
    }
    
    .working-since-section h2 {
        font-size: 2rem;
    }
    
    .working-since-section h3 {
        font-size: 1.5rem;
    }
}

/* Schedule Appointment Dark Section */
.schedule-appointment-dark {
    background-color: #2d2d2d;
    background-color: #1a1a1a;
}

.appointment-form-dark input[type="email"],
.appointment-form-dark input[type="date"],
.appointment-form-dark input[type="time"] {
    color: white;
}

.appointment-form-dark input[type="email"]::placeholder,
.appointment-form-dark input[type="date"]::placeholder,
.appointment-form-dark input[type="time"]::placeholder {
    color: #9ca3af;
}

.appointment-form-dark input[type="date"]::-webkit-calendar-picker-indicator,
.appointment-form-dark input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

.appointment-form-dark button,
.appointment-form-dark-button {
    background-color: #e20f0f;
}

.appointment-form-dark button:hover,
.appointment-form-dark-button:hover {
    background-color: #b40c0c;
}

@media (max-width: 768px) {
    .schedule-appointment-dark {
        padding: 3rem 0;
    }
    
    .schedule-appointment-dark h2 {
        font-size: 2rem;
    }
}

/* Footer Styles */
.footer-main {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/2024/03/01_2026-bm-preview-ezgif.com-resize.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    transform: scale(1.1);
    z-index: 1;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.footer-main a {
    text-decoration: none;
}

.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main .text-purple-500 {
    color: #a855f7;
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0;
    }
    
    .footer-main .grid {
        gap: 2rem;
    }
}

/* Gallery Lightbox Styles */
#image-lightbox {
    transition: opacity 0.3s ease;
}

#image-lightbox:not(.hidden) {
    display: flex;
    animation: fadeIn 0.3s ease;
}

#lightbox-image {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-image-zoom:focus {
    outline: 2px solid #e20f0f;
    outline-offset: 2px;
}

/* Lightbox Navigation Arrows */
#prev-image, #next-image {
    transition: all 0.3s ease;
}

#prev-image:hover, #next-image:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    #prev-image, #next-image {
        width: 40px;
        height: 40px;
    }
    
    #prev-image {
        left: 10px;
    }
    
    #next-image {
        right: 10px;
    }
}

/* Print styles */
@media print {
    .btn, nav, footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
