/* =============================================
   SOS COMPUTERS - SINGLE PAGE APPLICATION CSS
   ============================================= */

/* Global Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2c54;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --dark: #1e293b;
    --header-height-large: 120px;
    --header-height-small: 70px;
    --footer-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: var(--dark);
    padding-top: var(--header-height-large);
    padding-bottom: var(--footer-height);
    transition: padding-top 0.3s ease;
}

body.header-small {
    padding-top: var(--header-height-small);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   MAIN HEADER - SHRINKING EFFECT
   ============================================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: none;
    z-index: 10000;
    transition: all 0.3s ease;
    height: var(--header-height-large);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.main-header.shrink {
    height: var(--header-height-small);
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 40px;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo {
    height: 150px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header.shrink .logo {
    height: 70px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 35px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-header.shrink .nav-link {
    font-size: 1rem;
    padding: 8px 12px;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-link.active::after {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.crm-btn {
    background: white;
    color: var(--navy);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-header.shrink .crm-btn {
    padding: 8px 18px;
    font-size: 0.95rem;
}

.crm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.icon-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 45px;
}

.main-header.shrink .icon-btn {
    padding: 8px 12px;
    font-size: 1rem;
    min-width: 45px;
    height: 40px;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateY(-2px);
}

/* =============================================
   ACCESSIBILITY MENU
   ============================================= */

.accessibility-menu {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 10001;
    min-width: 280px;
    max-width: 320px;
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.accessibility-header h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: var(--light-bg);
    color: var(--dark);
}

.accessibility-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: right;
    font-size: 1rem;
}

.accessibility-option:hover {
    background: var(--blue);
    color: white;
    transform: translateX(-3px);
}

.accessibility-option.active {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
}

.accessibility-option .icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

/* Accessibility States */
body.high-contrast {
    filter: contrast(150%);
}

body.grayscale {
    filter: grayscale(100%);
}

body.underline-links a {
    text-decoration: underline !important;
}

body.readable-font,
body.readable-font * {
    font-family: Arial, sans-serif !important;
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */

#main-content {
    min-height: calc(100vh - var(--header-height-large) - var(--footer-height));
}

.content-section {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

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

/* =============================================
   HOME SECTION
   ============================================= */

.hero-section {
    background: 
        linear-gradient(135deg, rgba(26, 44, 84, 0.92) 0%, rgba(37, 99, 235, 0.88) 50%, rgba(6, 182, 212, 0.85) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231a2c54;stop-opacity:1" /><stop offset="100%" style="stop-color:%232563eb;stop-opacity:1" /></linearGradient></defs><rect width="1920" height="1080" fill="url(%23grad1)"/><g opacity="0.08" fill="white"><circle cx="200" cy="200" r="80"/><circle cx="500" cy="300" r="60"/><circle cx="800" cy="250" r="70"/><circle cx="1100" cy="350" r="65"/><circle cx="1400" cy="280" r="75"/><circle cx="1700" cy="320" r="68"/><rect x="150" y="600" width="120" height="120" rx="15"/><rect x="450" y="650" width="100" height="100" rx="12"/><rect x="750" y="580" width="130" height="130" rx="15"/><rect x="1050" y="620" width="110" height="110" rx="12"/><rect x="1350" y="600" width="115" height="115" rx="13"/><path d="M 300 800 L 500 850 L 700 780 L 900 820 L 1100 790 L 1300 830 L 1500 800" stroke="white" stroke-width="3" fill="none" opacity="0.3"/><path d="M 250 900 L 450 870 L 650 910 L 850 880 L 1050 920 L 1250 890 L 1450 900 L 1650 880" stroke="white" stroke-width="2" fill="none" opacity="0.2"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 20px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--navy);
}

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

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

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

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--navy);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* =============================================
   SERVICES SECTION
   ============================================= */

.page-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--navy);
    text-align: center;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 50px;
}

.services-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-detail {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 5px solid var(--blue);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-detail:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top-color: var(--cyan);
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: center;
}

.service-detail h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--navy);
    text-align: center;
}

.service-detail p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: 8px;
    position: relative;
    padding-right: 35px;
    font-size: 0.95rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    right: 10px;
    color: var(--cyan);
    font-weight: bold;
    font-size: 1.1rem;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--gray);
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--cyan);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-bg);
    border-radius: 10px;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* =============================================
   FLOATING FOOTER
   ============================================= */

.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    height: var(--footer-height);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
}

.footer-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-item.whatsapp {
    background: #25D366;
}

.footer-item.whatsapp:hover {
    background: #20BA5A;
}

.footer-item .icon {
    font-size: 1.2rem;
}

.footer-copyright {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-copyright p {
    margin: 0;
}

/* =============================================
   LANGUAGE DIRECTION SUPPORT
   ============================================= */

html[lang="en"] body {
    text-align: left;
    direction: ltr;
}

html[lang="en"] .header-content {
    flex-direction: row-reverse;
}

html[lang="en"] .main-nav {
    flex-direction: row-reverse;
}

html[lang="en"] .service-detail {
    border-left: none;
    border-right: 5px solid var(--blue);
}

html[lang="en"] .service-features li {
    padding-left: 45px;
    padding-right: 20px;
}

html[lang="en"] .service-features li::before {
    left: 15px;
    right: auto;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
    .main-nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height-large: 80px;
        --header-height-small: 60px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .logo {
        height: 60px;
    }
    
    .main-header.shrink .logo {
        height: 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }
    
    .footer-contact {
        gap: 10px;
    }
    
    .footer-item .text {
        display: none;
    }
    
    .footer-item {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}
