/* ===================================
   تحسينات الواجهة الرئيسية - Startup Theme
   =================================== */

/* إضافة Padding للعناصر الرئيسية */
.optech-hero-section4 {
    padding: 80px 0 100px;
    margin-top: 20px;
}

.optech-hero-content {
    padding: 40px 20px;
}

.optech-hero-content h5 {
    margin-bottom: 20px;
    padding: 0 10px;
}

.optech-hero-content h1 {
    margin-bottom: 25px;
    padding: 0 10px;
    line-height: 1.3;
}

.optech-hero-content p {
    margin-bottom: 35px;
    padding: 0 10px;
    line-height: 1.8;
}

/* تحسين المسافات للصور */
.optech-hero-thumb {
    padding: 30px;
    margin: 20px 0;
}

.optech-hero-thumb img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.optech-hero-thumb img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* تحسين الأقسام */
.section {
    padding: 80px 0;
    margin: 0 20px;
}

.optech-section-padding {
    padding: 100px 0;
}

.optech-section-padding2 {
    padding: 90px 0;
}

/* تحسين البطاقات */
.optech-iconbox-wrap {
    padding: 40px 30px;
    margin: 20px 10px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.optech-iconbox-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* تحسين عرض الخدمات في 3 أعمدة */
.optech-iconbox-wrap.style-two {
    min-height: 320px;
}

.optech-iconbox-wrap .optech-iconbox-data {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.optech-iconbox-wrap .optech-iconbox-data h5 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.optech-iconbox-wrap .optech-iconbox-data p {
    flex: 1;
    margin-bottom: 20px;
}

.optech-iconbox-wrap .optech-iconbox-data .optech-icon-btn {
    margin-top: auto;
}

/* تحسين Portfolio Cards */
.optech-portfolio-wrap {
    margin: 20px 10px;
    padding: 15px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.optech-portfolio-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.optech-portfolio-thumb {
    border-radius: 12px;
    overflow: hidden;
}

/* تحسين Blog Cards */
.optech-blog-wrap {
    margin: 20px 10px;
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.optech-blog-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.optech-blog-thumb {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.optech-blog-thumb img {
    transition: transform 0.6s ease;
}

.optech-blog-wrap:hover .optech-blog-thumb img {
    transform: scale(1.1);
}

/* ===================================
   Animations
   =================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* تطبيق Animations على العناصر */
.optech-hero-content h5 {
    animation: fadeInUp 0.8s ease-out;
}

.optech-hero-content h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.optech-hero-content p {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.optech-btn-wrap {
    animation: fadeInUp 1.4s ease-out 0.6s both;
}

.optech-hero-thumb {
    animation: slideInRight 1s ease-out 0.3s both;
}

.optech-hero-thumb img {
    animation: float 6s ease-in-out infinite;
}

/* Animation للأيقونات */
.optech-iconbox-icon {
    transition: transform 0.4s ease;
}

.optech-iconbox-wrap:hover .optech-iconbox-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Animation للأزرار */
.optech-default-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.optech-default-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.optech-default-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* تحسين Header */
.optech-header-section {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.optech-header-top {
    padding: 15px 0;
}

.optech-header-bottom {
    padding: 20px 0;
}

.optech-header-info ul li {
    padding: 0 15px;
}

/* تحسين Footer */
.optech-footer-section {
    padding-top: 80px;
    margin-top: 60px;
}

.optech-footer-textarea {
    padding: 0 20px;
}

.optech-footer-menu {
    padding: 0 20px;
}

/* تحسين المسافات للـ Container */
.container {
    padding-left: 30px;
    padding-right: 30px;
}

/* Responsive Padding */
@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section {
        margin: 0 10px;
        padding: 60px 0;
    }
    
    .optech-hero-section4 {
        padding: 60px 0 80px;
    }
    
    .optech-hero-content {
        padding: 30px 15px;
        text-align: center;
    }
    
    .optech-hero-thumb {
        padding: 20px;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section {
        margin: 0;
        padding: 50px 0;
    }
    
    .optech-iconbox-wrap {
        padding: 30px 20px;
        margin: 15px 0;
    }
    
    .optech-blog-wrap,
    .optech-portfolio-wrap {
        margin: 15px 0;
    }
}

/* تحسين Section Titles */
.optech-section-title {
    padding: 0 20px;
    margin-bottom: 60px;
}

.optech-section-title h2 {
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.3;
    padding: 0 15px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* تحسين الانتقالات */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Loading Animation للصور */
img {
    animation: fadeIn 0.6s ease-out;
}

/* Hover Effect للروابط */
a {
    transition: all 0.3s ease;
}

a:hover {
    transform: translateX(3px);
}

/* تحسين الظلال */
.optech-iconbox-wrap,
.optech-blog-wrap,
.optech-portfolio-wrap {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Gradient Background للأقسام */
.dark-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* تحسين الأزرار */
.optech-icon-btn {
    transition: all 0.3s ease;
    padding: 8px 15px;
}

.optech-icon-btn:hover {
    transform: translateX(5px);
    color: var(--primary-color, #007bff);
}

/* Animation للعناصر عند الـ Scroll */
[data-aos] {
    transition-duration: 0.8s;
}

/* تحسين الـ Spacing العام */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===================================
   Responsive للخدمات في 3 أعمدة
   =================================== */

/* Large Desktop */
@media (min-width: 1200px) {
    .optech-iconbox-wrap.style-two {
        min-height: 340px;
    }
}

/* Desktop & Tablet */
@media (max-width: 991px) {
    .optech-iconbox-wrap {
        padding: 35px 25px;
        margin: 15px 5px;
    }
    
    .optech-iconbox-wrap.style-two {
        min-height: 300px;
    }
    
    .optech-iconbox-data h5 {
        font-size: 18px;
    }
}

/* Tablet */
@media (max-width: 767px) {
    .optech-iconbox-wrap {
        padding: 30px 20px;
        margin: 15px 0;
    }
    
    .optech-iconbox-wrap.style-two {
        min-height: auto;
    }
    
    .optech-iconbox-data h5 {
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .optech-iconbox-data p {
        font-size: 15px;
        margin-bottom: 15px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .optech-iconbox-wrap {
        padding: 25px 20px;
    }
    
    .optech-iconbox-icon {
        margin-bottom: 15px;
    }
    
    .optech-iconbox-icon img {
        max-width: 60px;
    }
}

/* تحسين المسافات بين الخدمات */
.optech-section-padding2 .row {
    margin-bottom: -20px;
}

.optech-section-padding2 .row > [class*="col-"] {
    margin-bottom: 20px;
}

/* تحسين الأيقونات */
.optech-iconbox-icon {
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.optech-iconbox-icon img {
    max-width: 80px;
    height: auto;
    transition: transform 0.4s ease;
}

.optech-iconbox-wrap:hover .optech-iconbox-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* تحسين النصوص */
.optech-iconbox-data h5 {
    font-weight: 700;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.optech-iconbox-wrap:hover .optech-iconbox-data h5 {
    color: var(--primary-color, #007bff);
}

.optech-iconbox-data p {
    color: #666;
    line-height: 1.7;
}

/* تحسين الزر */
.optech-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.optech-icon-btn:hover {
    color: var(--primary-color, #007bff);
    gap: 12px;
}

.optech-icon-btn i {
    transition: transform 0.3s ease;
}

.optech-icon-btn:hover i {
    transform: translateX(3px);
}
