/**
 * Company Page Styles - تصميم صفحة الشركة المبهر
 */

/* Hero Section */
.company-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding-top: 140px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 170, 64, 0.9) 0%,
        rgba(184, 134, 11, 0.9) 100%
    );
    z-index: 2;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 100px 20px;
}

.company-logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    padding: 0;
    background: radial-gradient(circle at 30% 30%, #1a1a1a, #000);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 170, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(212, 170, 64, 0.3);
    transition: all 0.5s ease;
}

.company-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(212, 170, 64, 0.15);
    border-top-color: rgba(212, 170, 64, 0.6);
    animation: hero-logo-ring 3s linear infinite;
    pointer-events: none;
}

@keyframes hero-logo-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.company-logo-wrapper:hover {
    border-color: rgba(212, 170, 64, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 170, 64, 0.2);
}

.company-logo-wrapper .company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.company-logo-wrapper:hover .company-logo {
    transform: scale(1.1);
}

.company-hero-logo {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
}

.company-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease;
}

.company-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    animation: slideInUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1.2s ease;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-actions .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

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

/* Animated Shapes */
.hero-shape-1,
.hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -150px;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
}

/* Company Info Section */
.company-info {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.info-content {
    padding-right: 50px;
}

[dir="rtl"] .info-content {
    padding-right: 0;
    padding-left: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

[dir="rtl"] .section-subtitle {
    padding-left: 0;
    padding-right: 30px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--secondary-color);
}

[dir="rtl"] .section-subtitle::before {
    left: auto;
    right: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.company-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Info Images */
.info-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.grid-image-1 {
    grid-column: 1 / 2;
    margin-top: 50px;
}

.grid-image-2 {
    grid-column: 2 / 3;
}

.image-grid img,
.single-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-grid img:hover,
.single-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

[dir="rtl"] .floating-card {
    left: auto;
    right: 30px;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Services Section */
.company-services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 170, 64, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Gallery Section */
.company-gallery {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 170, 64, 0.8),
        rgba(184, 134, 11, 0.8)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.no-gallery {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-gallery p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

/* Company CTA Section */
.company-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230);
    position: relative;
    overflow: hidden;
}

.company-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    animation: rotate 30s linear infinite;
}

.company-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.cta-wrapper {
    background: linear-gradient(135deg, rgba(212, 170, 64, 0.95) 0%, rgba(184, 134, 11, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-cta-primary {
    background: white;
    color: #A58230;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary:hover {
    background: white;
    color: #A58230;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.3);
    border-color: white;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

/* إضافة نمط خاص للخلفية المتدرجة */
.company-cta {
    background:
        linear-gradient(135deg,
            rgba(212, 170, 64, 0.95) 0%,
            rgba(191, 152, 53, 0.95) 25%,
            rgba(184, 134, 11, 0.95) 75%,
            rgba(139, 105, 20, 0.95) 100%),
        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* تأثير الموجة المتحركة */
.company-cta::before,
.company-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.company-cta::before {
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.company-cta::after {
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 170, 64, 0.2) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .company-title {
        font-size: 2.5rem;
    }

    .company-subtitle {
        font-size: 1.2rem;
    }

    .info-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    [dir="rtl"] .info-content {
        padding-left: 0;
    }

    .cta-wrapper {
        padding: 40px 30px;
        text-align: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.98) 0%, rgba(184, 134, 11, 0.98) 100%);
    }

    .cta-content h3 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-actions {
        justify-content: center;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .company-hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 80px 20px;
    }

    .company-title {
        font-size: 2rem;
    }

    .company-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .company-stats {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .company-logo-wrapper {
        width: 100px;
        height: 100px;
    }
    .company-logo-wrapper .company-logo {
        width: 65px;
        height: 65px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-wrapper {
        padding: 30px 20px;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}
/* تحسينات إضافية لقسم CTA */
@media (max-width: 576px) {
    .company-cta {
        padding: 60px 0;
    }

    .cta-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .cta-content h3 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* تأثير التوهج للأزرار */
.btn-cta-primary,
.btn-cta-secondary {
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before,
.btn-cta-secondary::before {
    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;
}

.btn-cta-primary:hover::before,
.btn-cta-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* إضافة ظل للنص لتحسين القراءة */
.company-cta .cta-content h3,
.company-cta .cta-content p {
    position: relative;
    z-index: 2;
}

/* تحسين الخلفية المتدرجة */
.company-cta {
    background-image:
        linear-gradient(135deg,
            rgba(212, 170, 64, 0.9) 0%,
            rgba(191, 152, 53, 0.95) 20%,
            rgba(207, 181, 59, 0.9) 40%,
            rgba(184, 134, 11, 0.9) 60%,
            rgba(139, 105, 20, 0.95) 80%,
            rgba(112, 84, 16, 0.9) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* تحسينات للأيقونات */
.btn-cta-primary i,
.btn-cta-secondary i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover i,
.btn-cta-secondary:hover i {
    transform: translateX(3px);
}

[dir="rtl"] .btn-cta-primary:hover i,
[dir="rtl"] .btn-cta-secondary:hover i {
    transform: translateX(-3px);
}
