/*
Theme Name: Hawsba By Lightweb2
Theme URI: https://hwsba.com
Author: Toufic Mamdouh
Author URI: https://lightweb2.com/
Description: Custom template for Hawsba Information Technology Systems
Version: 1.1
Text Domain: hwsba
*/

:root {
    --primary: #4db5e7;
    --primary-dark: #3a9bd1;
    --accent: #85c76d;
    --accent-dark: #6db055;
    --light: #f8f9fa;
    --dark: #202124;
    --gray: #5f6368;
    --light-gray: #dadce0;
    --white: #ffffff;
    --section-bg: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #202124;
    --border-color: #e0e0e0;
    --hero-bg: #f0f9ff;
    --footer-bg: #f1f1f1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    direction: ltr;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(284deg, #2E3993B0 0%, #2E936F 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 5px;
}

/* Language Switcher */
/* Language Switcher Dropdown */
.language-switcher-dropdown {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.lang-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.lang-dropdown-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.lang-dropdown-btn:hover::before {
    left: 100%;
}

.current-flag {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.current-lang {
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 57, 147, 0.1), transparent);
    transition: left 0.4s ease;
}

.lang-option:hover {
    background: rgba(46, 57, 147, 0.1);
    color: #2E3993;
    transform: translateX(5px);
}

.lang-option:hover::before {
    left: 100%;
}

.lang-option:first-child {
    border-radius: 20px 20px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 20px 20px;
}

.lang-option .flag-img {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lang-option:hover .flag-img {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lang-option .lang-text {
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Primary Menu Styles */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: var(--transition);
    display: block;
}

.primary-menu li a:hover,
.primary-menu li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

a.system-link {
    color: black;
    text-decoration: none;
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(133, 199, 109, 0.5);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(133, 199, 109, 0.6);
}

/* Hero Section */
.hero {
    background: linear-gradient(284deg, #2E3993B0 0%, #2E936F 100%);
    padding: 150px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
        text-shadow: 1px 1px #31313194;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    /*background: url('images/hero-bg.jpg') no-repeat center center/cover;*/
    opacity: 0.08;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark);
}

/* General Sections */
.section {
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* Features Section */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(77, 181, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Statistics Section */
.stats {
    background: linear-gradient(284deg, #2E3993B0 0%, #2E936F 100%), url('images/stats-bg.jpg') center/cover;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--section-bg);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    color: rgba(77, 181, 231, 0.1);
    font-family: sans-serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 3px solid var(--accent);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

/* Partners Section */
.partners {
    background-color: var(--white);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.partner-logo {
    opacity: 0.8;
    transition: var(--transition);
    max-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 50px;
    max-width: 100%;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #2687c6 0%, #5cc592 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    color: var(--accent);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Mobile Menu Enhancements ============ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-toggle .menu-bar {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.close-nav-btn {
    display: none;
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ============ Media Queries ============ */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Language Switcher Dropdown Mobile */
    .language-switcher-dropdown {
        margin-right: 15px;
    }

    .lang-dropdown-btn {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
        border-radius: 25px;
        min-width: 100px;
    }

    .current-flag {
        width: 18px;
        height: 13px;
    }

    .current-lang {
        font-size: 11px;
    }

    .dropdown-arrow {
        width: 10px;
        height: 6px;
    }

    .lang-dropdown-menu {
        min-width: 140px;
        top: calc(100% + 6px);
    }

    .lang-option {
        padding: 10px 14px;
    }

    .lang-option .flag-img {
        width: 18px;
        height: 13px;
    }

    .lang-option .lang-text {
        font-size: 11px;
    }

    .lang-dropdown-btn:hover {
        transform: translateY(-1px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #2E3993 0%, #2E936F 100%);
        padding: 100px 30px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        padding-top: 20px;
    }

    .primary-menu li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .nav-menu.active .primary-menu li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .primary-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .primary-menu li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .primary-menu li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .primary-menu li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .primary-menu li:nth-child(5) { transition-delay: 0.5s; }

    .primary-menu li a {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 1.2rem;
        border-radius: 0;
    }

    .primary-menu li a:hover,
    .primary-menu li a:focus {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding-right: 30px;
    }

    .close-nav-btn {
        display: block;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Header Enhancements on Mobile */
    header {
        padding: 12px 0;
    }

    .logo img {
        height: 80px;
    }

    /* Hero Section Enhancements */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }

    .testimonial-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .cta-button, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .partner-logos {
        gap: 15px;
    }
}

.help-notification {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 300px;
    z-index: 1000;
    display: none;
    direction: ltr;
    font-family: 'Inter', sans-serif;
}