/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2b2e35;
    --secondary-color: #31343c;
    --accent-color: #f39c12;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: #444;
    --transition: all 0.3s ease;
    --font-en: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-color);
}

/* RTL Support with Arabic Font */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: var(--font-ar);
}

[dir="rtl"] .container {
    direction: rtl;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: var(--font-ar);
    font-weight: 700;
}

[dir="rtl"] .btn,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
    font-family: var(--font-ar);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

.large-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== LANGUAGE TOGGLE ===== */
.language-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
}

[dir="rtl"] .language-toggle {
    right: auto;
    left: 20px;
}

.lang-btn {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* Mobile responsive for language toggle */
@media (max-width: 768px) {
    .language-toggle {
        top: 15px;
        right: 70px;
        z-index: 1001;
    }

    [dir="rtl"] .language-toggle {
        right: auto;
        left: 70px;
    }

    .lang-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== HEADER ===== */
.header {
    background: var(--secondary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--accent-color);
    color: var(--text-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 46, 53, 0.85);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    text-align: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--primary-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--text-gray);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
}

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

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1c20;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col p,
.footer-links li,
.footer-contact li {
    color: var(--text-gray);
    margin-bottom: 10px;
}

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

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-color);
}

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

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* ===== ABOUT PAGE ===== */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.founder-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.founder-content h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.founder-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.founder-quote {
    background: var(--secondary-color);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    margin-top: 30px;
    border-radius: 5px;
}

[dir="rtl"] .founder-quote {
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.founder-quote i {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.process-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin: 40px 0 20px;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-gray);
}

.expertise-grid {
    max-width: 800px;
    margin: 50px auto 0;
}

.expertise-item {
    margin-bottom: 30px;
}

.expertise-bar {
    height: 10px;
    background: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.expertise-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #e67e22);
    transition: width 1s ease;
}

.expertise-item h3 {
    display: inline-block;
    font-size: 1.1rem;
}

.expertise-percent {
    float: right;
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== SERVICES PAGE ===== */
.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--primary-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-detail:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
}

[dir="rtl"] .service-detail:hover {
    transform: translateX(-10px);
}

.service-icon-large {
    font-size: 4rem;
    color: var(--accent-color);
    min-width: 100px;
}

.service-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

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

.solution-card {
    background: var(--primary-color);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.solution-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.solution-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

.solution-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

[dir="rtl"] .solution-features li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .solution-features li:before {
    left: auto;
    right: 0;
}

.project-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-type-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: var(--transition);
}

.project-type-item:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.project-type-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.portfolio-project:nth-child(even) {
    direction: rtl;
}

.portfolio-project:nth-child(even) .project-details {
    direction: ltr;
}

[dir="rtl"] .portfolio-project:nth-child(even) .project-details {
    direction: rtl;
}

.project-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.project-image:hover img {
    transform: scale(1.1);
}

.project-details h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.project-info {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
}

.info-item {
    margin-bottom: 10px;
    color: var(--text-gray);
}

.info-item strong {
    color: var(--text-light);
    margin-right: 10px;
}

[dir="rtl"] .info-item strong {
    margin-right: 0;
    margin-left: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: var(--text-gray);
}

.contact-text a:hover {
    color: var(--accent-color);
}

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

.social-links-large a {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.contact-form-wrapper {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background: #27ae60;
    color: white;
}

.form-message.error {
    display: block;
    background: #e74c3c;
    color: white;
}

.map-section {
    margin-top: 0;
}

.map-container {
    width: 100%;
    height: 450px;
}

/* ===== CONTACT METHODS ===== */
.contact-methods {
    margin-top: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--primary-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.method-info h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.method-info p {
    color: var(--text-gray);
    margin-bottom: 5px;
}

.method-info a {
    color: var(--accent-color);
    font-weight: 600;
}

.method-info a:hover {
    text-decoration: underline;
}

.email-protected {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.hours {
    font-size: 0.9rem;
    font-style: italic;
}

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

.social-links-contact a {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links-contact a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.contact-note {
    margin-top: 40px;
    padding: 20px;
    background: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

[dir="rtl"] .contact-note {
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.contact-note i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.contact-note p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

.inquiry-form {
    margin-top: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary-color);
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
    }

    .nav-list.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .founder-grid,
    .contact-grid,
    .portfolio-project {
        grid-template-columns: 1fr;
    }

    .portfolio-project:nth-child(even) {
        direction: ltr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .service-detail {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn-lg {
        padding: 12px 30px;
        font-size: 16px;
    }
}
