/* ============================
   Modern Minimalist Design
   Based on Logo Colors: Black, White, Gray
   ============================ */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    direction: rtl;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.2rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.lang-toggle {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle:hover {
    background: var(--gray);
    transform: translateY(-2px);
}

.lang-text {
    letter-spacing: 1px;
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&h=1080&fit=crop') center/cover;
    position: relative;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================
   BUTTONS
   ============================ */

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    color: var(--black);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* ============================
   SECTION STYLES
   ============================ */

section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--black);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

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

.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.service-content {
    padding: 2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 2rem;
    text-align: right;
}

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

.about-text p strong {
    color: var(--black);
    font-weight: 700;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--black);
    z-index: 0;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    display: block;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

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

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

.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background-color: var(--light-gray);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.info-card:hover {
    border-right-color: var(--black);
    transform: translateX(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================
   CONTACT FORM
   ============================ */

.contact-form-wrapper {
    background-color: var(--light-gray);
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid transparent;
    background-color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: var(--black);
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    width: fit-content;
    margin-top: 1rem;
}

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

.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-info {
    text-align: left;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================
   ANIMATIONS
   ============================ */

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

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

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero {
        height: 80vh;
        margin-top: 120px;
    }

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

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

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

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

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

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero {
        height: 70vh;
        margin-top: 140px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0;
    }

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

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

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

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-number {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image img {
        height: 400px;
    }

    .about-image::before {
        top: -10px;
        right: -10px;
        border-width: 2px;
    }

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

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card h4 {
        font-size: 1.1rem;
    }

    .info-card p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .footer-logo-img {
        width: 50px;
        height: 50px;
    }

    .footer-logo h3 {
        font-size: 1.3rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}
