/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f4f;
    --secondary-color: #4a8c7a;
    --accent-color: #d4af37;
    --header-footer-bg: #19202E;
    --text-dark: #000000;
    --text-light: #333333;
    --icon-color: #FFA500;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1600px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Header & Navigation */
.header {
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-footer-bg);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    flex-direction: row-reverse;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .nav-wrapper {
        padding: 0 20px;
        height: 70px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .logo h1 {
        font-size: 1.6rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 40px;
    }
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

@media (max-width: 1200px) {
    .nav-links a {
        font-size: 1rem;
    }
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 20px;
    max-width: 900px;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 400;
    animation: fadeInUp 1.2s ease;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #FFA500;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
    animation: fadeInUp 1.4s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 165, 0, 0.5);
    background: #FF8C00;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    padding: 40px 0 70px 0;
    background: var(--bg-light);
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 3px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 8px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: fit-content;
}

.service-card:first-child {
    grid-row: 1 / 3;
    height: 100%;
}

.service-card:first-child .service-image {
    height: 100%;
    min-height: 450px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 107, 163, 0.85);
    padding: 8px;
    text-align: center;
}

.service-overlay h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-us-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    background: var(--icon-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-us-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--icon-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.why-us-card:hover .icon-wrapper {
    background: var(--white);
}

.why-us-card .icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.why-us-card:hover .icon-wrapper i {
    color: var(--icon-color);
}

.why-us-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.why-us-card:hover h3 {
    color: var(--white);
}

.why-us-card p {
    color: var(--text-light);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.why-us-card:hover p {
    color: var(--white);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #141E30;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .contact-wrapper {
        gap: 60px;
    }
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item .icon-wrapper {
    width: 60px;
    height: 60px;
    background: #FFA500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.contact-item .icon-wrapper i {
    font-size: 1.5rem;
    color: var(--white);
}

@media (max-width: 1200px) {
    .contact-item .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .contact-item .icon-wrapper i {
        font-size: 1.5rem;
    }
}

.contact-info h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-info a {
        font-size: 1rem;
    }
}

.contact-info a:hover {
    color: #FFA500;
}

.address-link {
    display: inline-block;
    position: relative;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.address-link:hover {
    color: #FFA500 !important;
    text-decoration: underline;
}

/* Social Media */
.social-media {
    margin-top: 30px;
}

.social-media h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

@media (max-width: 1200px) {
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

.social-icon.facebook {
    background: #1877f2;
    color: var(--white);
}

.social-icon.facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.linkedin {
    background: #0077b5;
    color: var(--white);
}

.social-icon.linkedin:hover {
    background: #006399;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.whatsapp {
    background: #25d366;
    color: var(--white);
}

.social-icon.whatsapp:hover {
    background: #1ebd59;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer {
    background: #050714;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    max-width: 1400px;
}

.footer p {
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 1200px) {
    .footer {
        padding: 30px 0;
    }
    
    .footer p {
        font-size: 1rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - Professional Breakpoints
   ============================================ */

/* Extra Large Screens (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .nav-wrapper {
        max-width: 1600px;
    }
    
    .hero-content h2 {
        font-size: 4.5rem;
    }
    
    .hero-content p {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 250px);
        gap: 12px;
    }
    
    .service-card:first-child {
        grid-row: 1 / 3;
        height: 100%;
    }
    
    .service-card:first-child .service-image {
        height: 100%;
        min-height: 520px;
    }
    
    .service-image {
        height: 250px;
    }
}

/* Large Screens - Desktop (1200px to 1600px) */
@media (min-width: 1200px) and (max-width: 1600px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

/* Medium Screens - Tablets Landscape & Small Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .nav-wrapper {
        padding: 0 30px;
    }
    
    .nav-links {
        gap: 35px;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 200px);
        gap: 10px;
    }
    
    .service-card:first-child {
        grid-row: 1 / 3;
        height: 100%;
    }
    
    .service-card:first-child .service-image {
        height: 100%;
        min-height: 415px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .contact-wrapper {
        gap: 50px;
    }
}

/* Tablets Portrait (768px to 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 25px;
    }
    
    .nav-wrapper {
        height: 70px;
        padding: 0 25px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        height: calc(100vh - 70px);
        width: 75%;
        max-width: 350px;
        background: var(--header-footer-bg);
        flex-direction: column;
        padding: 40px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        gap: 25px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        margin-top: 70px;
        height: 85vh;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 16px 45px;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
        gap: 10px;
    }
    
    .service-card:first-child {
        grid-row: auto;
        height: fit-content;
    }

    .service-card:last-child {
        grid-column: 1 / -1;
    }
    
    .service-image {
        height: 180px;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 35px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-item {
        margin-bottom: 35px;
    }
}

/* Mobile Landscape & Small Tablets (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-wrapper {
        padding: 0 20px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        width: 80%;
        padding: 35px 25px;
    }

    .hero {
        height: 80vh;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 35px;
    }

    .cta-button {
        padding: 14px 40px;
        font-size: 1rem;
    }
    
    .services,
    .why-us,
    .contact {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 10px;
    }
    
    .service-card:first-child {
        grid-row: auto;
        height: fit-content;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-us-card {
        max-width: 450px;
        margin: 0 auto;
        padding: 35px 20px;
    }
    
    .contact-wrapper {
        gap: 40px;
    }
    
    .contact-item {
        margin-bottom: 30px;
    }
    
    .contact-item .icon-wrapper {
        width: 55px;
        height: 55px;
    }
    
    .contact-item .icon-wrapper i {
        font-size: 1.3rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-info a {
        font-size: 0.95rem;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-wrapper {
        height: 65px;
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        top: 65px;
        height: calc(100vh - 65px);
        width: 85%;
        max-width: 280px;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 1rem;
    }

    .hero {
        margin-top: 65px;
        height: 75vh;
    }

    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 12px 35px;
        font-size: 0.95rem;
    }
    
    .services,
    .why-us,
    .contact {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-overlay h3 {
        font-size: 1rem;
    }
    
    .service-overlay {
        padding: 10px;
    }
    
    .why-us-grid {
        gap: 25px;
    }
    
    .why-us-card {
        padding: 30px 15px;
    }
    
    .why-us-card .icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .why-us-card .icon-wrapper i {
        font-size: 1.8rem;
    }
    
    .why-us-card h3 {
        font-size: 1.2rem;
    }
    
    .why-us-card p {
        font-size: 0.9rem;
    }
    
    .contact-wrapper {
        gap: 35px;
        margin-top: 50px;
    }
    
    .contact-item {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .contact-item .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .contact-item .icon-wrapper i {
        font-size: 1.2rem;
    }
    
    .contact-info h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .contact-info a {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .address-link {
        font-size: 0.9rem !important;
    }
    
    .social-media h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 25px 0;
    }
    
    .footer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .hero-content h2 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .service-overlay h3 {
        font-size: 0.95rem;
    }
    
    .service-overlay {
        padding: 8px;
    }
    
    .why-us-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-info a {
        font-size: 0.85rem;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
