/* ===================================
   تحسينات خاصة بالـ Hero Section
   Hero Section Enhancements
   =================================== */

/* Container Improvements */
.optech-hero-section4 {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.optech-hero-section4::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.optech-hero-section4::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 117, 125, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

/* Content Area */
.optech-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
}

.optech-hero-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color, #007bff);
    margin-bottom: 25px;
    padding: 12px 25px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50px;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: slideInLeft 0.8s ease-out;
}

.optech-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
    padding: 0 15px;
    color: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.optech-hero-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    padding: 0 15px;
    max-width: 600px;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

/* Buttons Enhancement */
.optech-extra-mt {
    margin-top: 50px;
    animation: fadeInUp 1.4s ease-out 0.6s both;
}

.optech-btn-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.optech-default-btn {
    position: relative;
    padding: 20px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.optech-default-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.optech-default-btn:hover::before {
    left: 100%;
}

.optech-default-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.optech-default-btn .btn-wraper {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.optech-light-btn {
    background: transparent;
    border: 2px solid var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
}

.optech-light-btn:hover {
    background: var(--primary-color, #007bff);
    color: #fff;
}

/* Image Area */
.optech-hero-thumb {
    position: relative;
    z-index: 2;
    padding: 40px;
    margin: 30px 0;
}

.optech-hero-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
    border-radius: 30px;
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

.optech-hero-thumb img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
}

.optech-hero-thumb img:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Decorative Elements */
.optech-hero-thumb::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--secondary-color, #6c757d) 100%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -2;
    animation: pulse 3s ease-in-out infinite;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.floating-shape-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: var(--primary-color, #007bff);
    animation-delay: 0s;
}

.floating-shape-2 {
    top: 60%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: var(--secondary-color, #6c757d);
    animation-delay: 2s;
}

.floating-shape-3 {
    bottom: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: var(--primary-color, #007bff);
    animation-delay: 4s;
}

/* Stats or Features (إذا كنت تريد إضافتها) */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color, #007bff);
    margin-bottom: 10px;
}

.hero-stat-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.scroll-indicator i {
    font-size: 24px;
    color: var(--primary-color, #007bff);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Animations */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .optech-hero-section4 {
        padding: 100px 0;
    }
    
    .optech-hero-content {
        padding: 50px 30px;
    }
    
    .optech-hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 991px) {
    .optech-hero-section4 {
        min-height: auto;
        padding: 80px 0;
    }
    
    .optech-hero-content {
        padding: 40px 20px;
        text-align: center;
    }
    
    .optech-hero-content h5,
    .optech-hero-content h1,
    .optech-hero-content p {
        padding: 0;
    }
    
    .optech-hero-content p {
        max-width: 100%;
    }
    
    .optech-btn-wrap {
        justify-content: center;
    }
    
    .optech-hero-thumb {
        padding: 30px 20px;
        margin-top: 50px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 767px) {
    .optech-hero-section4 {
        padding: 60px 0;
    }
    
    .optech-hero-content {
        padding: 30px 15px;
    }
    
    .optech-hero-content h5 {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .optech-hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .optech-hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .optech-btn-wrap {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .optech-default-btn {
        width: 100%;
        text-align: center;
        padding: 18px 35px;
    }
    
    .optech-hero-thumb {
        padding: 20px 10px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 30px;
    }
    
    .hero-stat-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
    
    .floating-shape {
        display: none;
    }
}

@media (max-width: 575px) {
    .optech-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .optech-default-btn {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .hero-stat-item h3 {
        font-size: 28px;
    }
}

/* Print Styles */
@media print {
    .optech-hero-section4::before,
    .optech-hero-section4::after,
    .floating-shape,
    .scroll-indicator {
        display: none;
    }
    
    .optech-hero-section4 {
        min-height: auto;
        padding: 40px 0;
    }
}
