/* ملف الأنماط المتجاوبة لموقع تك ماتيك */

/* قواعد متجاوبة عامة */
:root {
    --primary-color: #e6e6a0;
    --secondary-color: #c9c980;
    --light-bg: #f9f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* إعدادات أساسية */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الهيدر المتجاوب */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    padding: 5px 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* إخفاء زر الإغلاق في الشاشات الكبيرة (أكبر من 768px) */
.close-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* إظهار زر الإغلاق فقط في الشاشات الصغيرة - سيتم تفعيله في media query */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 40px;
    height: 35px;
    justify-content: space-between;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    background-color: rgba(230, 230, 160, 0.1);
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    position: relative;
}

.menu-toggle span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #e6e6a0;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.menu-toggle:hover span::before {
    width: 100%;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(0);
}

.menu-toggle span:nth-child(2) {
    transform: translateY(0);
    opacity: 1;
}

.menu-toggle span:nth-child(3) {
    transform: translateY(0);
}

/* إصلاح الأيقونات الكبيرة */
.service-icon i,
.contact-icon i,
.benefit-icon i {
    font-size: 2.5rem !important;
    max-width: 60px;
    max-height: 60px;
    display: inline-block;
    line-height: 1;
}

/* إصلاح أيقونة الشعار */
.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* القسم البطولي المتجاوب */
.hero {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
}

.hero-image-container {
    flex: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #1a1a1a;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* قسم من نحن المتجاوب */
.about {
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

/* قسم الخدمات المتجاوب */
.services {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    margin-top: 30px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 300px;
    min-width: 300px;
    background-color: var(--light-text);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 10px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* قسم الفريق المتجاوب */
.portfolio {
    padding: 60px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.portfolio-item {
    background-color: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
}

/* نموذج الاتصال المتجاوب */
.contact {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 10px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

/* مناطق تطبيق متجاوبة إضافية */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* الفوتر المتجاوب */
footer {
    background-color: #212529;
    color: var(--light-text);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info p {
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--light-text);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Cairo', sans-serif;
}

.newsletter-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

/* زر الواتساب الثابت */
.fixed-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.fixed-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* رسائل التنبيه */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* قواعد الوسائط المتجاوبة */

/* الشاشات المتوسطة (أجهزة لوحية) */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* الشاشات الصغيرة (الهواتف الذكية) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        padding-top: 80px;
    }
    
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }
    
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .header-content {
        position: relative;
        z-index: 1001;
        padding: 0 15px;
    }
    
    /* تحسين overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* تحسين القائمة الجانبية */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 100px;
    }
    
    nav.active {
        right: 0;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
    }
    
    /* تحسين خلفية القائمة */
    nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        z-index: -1;
    }
    
    /* تحسين عناصر القائمة */
    nav ul {
        flex-direction: column;
        padding: 30px 0;
        margin: 0;
        width: 100%;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        animation: slideInNav 0.6s ease forwards;
    }
    
    nav ul li a {
        display: block;
        padding: 18px 30px;
        color: var(--dark-text);
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        text-align: right;
        background: transparent;
    }
    
    nav ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(230, 230, 160, 0.15));
        transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    nav ul li a:hover::before {
        width: 100%;
    }
    
    nav ul li a:hover {
        color: var(--primary-color);
        background-color: rgba(230, 230, 160, 0.08);
        transform: translateX(-8px);
        padding-right: 38px;
    }
    
    nav ul li a.active {
        color: var(--primary-color);
        background-color: rgba(230, 230, 160, 0.15);
        border-right: 5px solid var(--primary-color);
        font-weight: 700;
    }
    
    /* تحسين زر الإغلاق */
    nav .close-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        left: 25px !important;
        top: 25px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        font-size: 1.3rem;
        color: var(--dark-text);
        cursor: pointer;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    nav .close-menu:hover {
        background-color: var(--primary-color);
        color: var(--dark-text);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    /* تحسين أيقونة القائمة عند التفعيل */
    .menu-toggle.active {
        background-color: rgba(230, 230, 160, 0.3);
        transform: scale(1.1);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background-color: var(--primary-color);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
        background-color: var(--primary-color);
    }
    
    /* تحسين الأنيميشن */
    @keyframes slideInNav {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* تحسين الشعار */
    .logo img {
        max-height: 55px;
        transition: all 0.3s ease;
    }
    
    /* تحسين المحتوى الرئيسي */
    body {
        padding-top: 85px;
    }
    
    /* تحسين الأيقونات الاجتماعية للموبايل */
    .top-social-icons {
        left: 15px;
        gap: 8px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .top-social-icons a {
        width: 38px;
        height: 38px;
    }
    
    .top-social-icons i {
        font-size: 0.95rem !important;
    }
}

@keyframes slideInNav {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* الشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .contact-item {
        text-align: center;
        padding: 15px;
    }
    
    .form-control {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
    }
    
    .fixed-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    nav {
        width: 100%;
        right: -100%;
    }
    
    nav ul li a {
        padding: 20px 25px;
        font-size: 1.05rem;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
} 