@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;800;900&display=swap');

/* Color Variables */
:root {
    --dark-green: #1B2A49;
    --vibrant-orange: #FFD700;
    --dark-blue: #053c27;
    --sky-blue: #38B6FF;
    --text-color-primary: #333333;
    --text-color-light: #666666;
    --background-light: #FAFAFA;
    --whatsapp-green: #25D366;
    --main-font: 'Cairo', sans-serif;
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Typography */
body {
    font-family: var(--main-font);
    color: var(--text-color-primary);
    background-color: #ffffff;
    line-height: 1.7;
    font-size: 16px;
}

/* Container for centering content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings */
h1,
h2,
h3,
h4 {
    color: var(--dark-green);
    font-weight: 800;
    line-height: 1.3;
}

/* Links */
a {
    text-decoration: none;
    color: var(--dark-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vibrant-orange);
}

/* -------------------------------------- */
/* 2. Global Buttons Styles */
/* -------------------------------------- */

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.2;
    white-space: nowrap;
}

/* Primary Button */
.btn-primary {
    background-color: var(--vibrant-orange);
    color: #333333;
    border: 2px solid var(--vibrant-orange);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--vibrant-orange);
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    background-color: #ffffff;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Small Button */
.btn-small {
    padding: 10px 25px !important;
    font-size: 1em !important;
}

.cta-header-button {
    padding: 15px 15px;
    /*box*/
    font-size: 0.95em;
    font-weight: 800;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

/* -------------------------------------- */
/* 3. Main Navigation (Header) Styles */
/* -------------------------------------- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInUp 0.8s ease-out forwards;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styling */
.logo img {
    height: 70px;
    width: auto;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, opacity 0.4s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Navigation Links List */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Navigation Link Styling */
.main-nav a {
    color: var(--text-color-light);
    font-weight: 800;
    font-size: 1.2em;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* Link Hover/Active Effects */
.main-nav a:hover,
.main-nav a.active-link {
    color: #ffffff !important;
    background-color: var(--dark-blue);
    font-weight: 800;
}

/* CTA Button in Header */
.cta-nav-button {
    padding: 5px 10px;
    font-size: 1.2em;

}

/* Hide Hamburger Menu Button on Desktop */
.menu-toggle {
    display: none;
}

/* Mobile Menu Open Style (used by JS to show vertical menu) */
.main-nav.is-open {
    display: block !important;
    position: absolute;
    top: 85px;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    padding: 10px 0;
}


/* -------------------------------------- */
/* 4. Global Sections Styles */
/* -------------------------------------- */
.section-title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-blue);
    padding-top: 50px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.3em;
    text-align: center;
    color: var(--text-color-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.section-action {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
}

/* -------------------------------------- */
/* 5. Hero Section (Home Page) */
/* -------------------------------------- */

.hero-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 10px solid var(--vibrant-orange);

}

.hero-title {
    font-size: 3.5em;
    color: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 2;
}

/* Text Rotator Styles */
.word-wrapper {
    position: relative;
    height: 1.5em;
    overflow: hidden;
    display: inline-block;
    min-width: 300px;
    text-align: right;
    margin-inline-start: 10px;
    opacity: 2;

}

/* 2-video background */
.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.rotating-word {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--vibrant-orange);
    font-weight: 900;
}

.rotating-word.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word:not(.is-visible) {
    transform: translateY(100%);
}

.hero-description {
    font-size: 1.35em;
    color: var(--background-light);
    margin-bottom: 40px;
    font-weight: 400;
}

/* -------------------------------------- */
/* 5.5. About Us Section  */
/* -------------------------------------- */
.about-us-section {
    padding: 20px 0;
    background-color: #ffffff;
}

.about-us-grid {
    display: grid;
    gap: 40px;
    padding: 0 20px;
    grid-template-columns: repeat(2, 1fr);

}

/* -------------------------------------- */
/* 6. Services Section (Home Page) */
/* -------------------------------------- */
.services-section {
    padding: 20px 0;
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 30px;
}

.service-card {
    background-color: var(--dark-blue);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: var(--background-light);

}

.service-card h3 {
    color: var(--background-light);
    font-size: 1.3em;
    margin: 15px 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card p {
    color: var(--background-light);
    transition: color 0.3s ease;
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--dark-blue);
}

.service-card .icon {
    font-size: 2.5em;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-bottom: 10px;
}

.service-card:hover .icon {
    animation: icon-pulse 1s infinite alternate;
    color: var(--vibrant-orange) !important;
}

.service-cta-card {
    background-color: var(--dark-blue) !important;
    border: 3px solid var(--vibrant-orange);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: none !important;
}

.service-cta-card h3,
.service-cta-card p {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.4em !important;
}

.service-cta-card p {
    font-size: 1.1em !important;
    margin-bottom: 20px;
}

/* -------------------------------------- */
/* 6.5. Services CTA Box */
/* -------------------------------------- */
.services-cta-box-section {
    padding: 30px 0;
    background-color: #ffffff;
    text-align: center;
}

.services-cta-box {
    background-color: #053c27;
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 163, 152, 0.1);
}

.services-cta-box:hover {

    box-shadow: 0 10px 20px rgba(0, 163, 152, 0.2);
    transform: translateY(-2px);
}

.cta-box-text {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--background-light);
    margin: 0;
}

.cta-box-btn {
    animation: pulse-border 2s infinite;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 12px;

}

/* -------------------------------------- */
/* 7. Portfolio Section (Home Page) */
/* -------------------------------------- */
.portfolio-section {
    background-color: #ffffff;
    padding: 50px 0 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;

}

.portfolio-item {
    display: block;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item img,
.portfolio-item video {
    width: 90%;
    height: 90%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 10px 10px 0 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;

}

.modal-content video {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/*close button*/
.close {
    position: absolute;
    top: -15px;
    right: -15px;
    color: #fff;
    font-size: 35px;
    font-weight: normal;
    background: #666666;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

.portfolio-caption {
    background-color: var(--background-light);
    padding: 15px 10px;
    text-align: center;
    border-top: 1px solid var(--background-light);
    border-radius: 0 0 10px 10px;
}

.portfolio-caption h4 {
    color: var(--dark-blue);
    font-size: 1.2em;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.portfolio-caption span {
    color: var(--text-color-primary);
    font-size: 1.6em;
    display: block;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-overlay span {
    color: var(--text-color-primary);
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

/* عند Hover أو Touch */
.portfolio-item:hover .item-overlay,
.portfolio-item:active .item-overlay {
    opacity: 1;
}

.cta-footer-section {
    display: none !important;
}

/* -------------------------------------- */
/* 9. Footer Styles*/
/* -------------------------------------- */
footer {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding-top: 40px;
    padding-bottom: 0px;
    font-size: 0.95em;
    position: relative;
    height: 500px;
    width: auto;
}

.footer-content-grid {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    text-align: right;
    padding-bottom: 30px;
}

.footer-content-grid>div {
    flex: 1;
    min-width: 180px;
    align-items: flex-start;
}

.footer-content-grid h3 {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: right;
}

.footer-content-grid p {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    text-align: right;
}

.footer-content-grid p i {
    margin-left: 10px;
    color: #ffffff;
    font-size: 1.2em;
}

.footer-logo {
    flex: 1.5;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
    order: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.footer-logo img:hover {
    transform: scale(1.08);
    opacity: 0.85;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08em;
    padding: 5px 0;
    display: block;
    text-align: right;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--vibrant-orange);
}

.footer-links .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.footer-links .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    background-color: var(--background-light);

    color: var(--dark-blue);
    font-size: 2em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links .social-icons a:hover {
    background-color: #ffffff;
    color: var(--dark-blue);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--vibrant-orange);
}

.footer-links h3,
.footer-links ul {
    text-align: right;
}

.footer-bottom-bar {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0 0;
    margin-top: 30px;
}

.footer-bottom-bar p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2em;
    line-height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-green);
}

/* تعريف حركة ظهور الهيدر من الأسفل للأعلى (Slide In Up) */
@keyframes slideInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Define Keyframe Animation for Icon */
@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------- */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------------------*/

/* Tablet and Smaller Desktop Screens (Max 1000px) */
@media (max-width: 1000px) {

    /* Base */
    .container {
        padding: 0 25px;
        max-width: 100%;
    }

    /* Header */
    .main-nav {
        display: flex !important;
        gap: 25px;
        align-items: center;
    }

    .cta-nav-button {
        display: flex;
    }

    /* إخفاء الهامبرجر */
    .menu-toggle {
        display: none !important;
    }

    /* ABOUT US – لماذا نحن؟ */
    .about-us-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* عمودين */
        gap: 30px;
        align-items: stretch;
    }

    .about-us-grid .service-card {
        max-width: 100%;
        width: 100%;
    }

    /* SERVICES – الخدمات */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* PORTFOLIO – معرض الأعمال */
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }


    /* HERO */
    .hero-title {
        font-size: 2em;
    }

    .section-title {
        font-size: 2.3em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .footer-content-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 أعمدة */
        align-items: flex-start;
        text-align: left;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* اللوجو */
    .footer-logo {
        width: 150px;
        max-width: 150px;
        margin-bottom: 10px;
        text-align: left;
    }

    .footer-logo img {
        width: 100%;
        height: auto;
    }

    .footer-content-grid p {
        font-size: 1rem;
        line-height: 1.7;
        justify-content: flex-start;
        display: flex;
        align-items: center;
        text-align: right;
    }

    /* السوشيال */
    .footer-links .social-icons {
        justify-content: flex-start;
        padding: 0;
        gap: 12px;

    }
}

/* ------------------------------------------------------------------------------------------------------------------------------------------------- */

/* mobile (max 768px) */
/* -------------------------------------- */
@media screen and (max-width: 768px) {

    .container {
        padding: 0 15px;
    }

    /* Header & Navigation */
    .main-header .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
    }

    .logo img {
        height: 50px;
    }

    .main-nav ul {
        gap: 1px;
    }

    .main-nav a {
        font-size: 0.5em;
        padding: 2px 10px;
    }

    .cta-nav-button {
        display: block;
        padding: 5px 5px;
        font-size: 0.4em;
        margin-top: 10px;
    }

    /*hero-section*/

    /* -------------------------------------- */
    .hero-section {
        padding: 50px 15px;
        border-bottom: 5px solid var(--vibrant-orange);
        height: 200px;
    }

    .hero-title {
        font-size: 1.5em;
    }

    .word-wrapper {
        min-width: 100px;
        margin-inline-start: 5px;
    }

    .hero-description {
        font-size: 0.9em;
    }

    .section-subtitle {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.5em;
    }

    /* -------------------------------------- */
    /* About Us Section */
    /* -------------------------------------- */
    .about-us-grid {
        flex-direction: column;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-us-grid .service-card {
        max-width: 100%;
    }

    .service-card h3 {
        font-size: 1em;
    }

    .service-card p {
        font-size: 0.7em;
    }

    .service-card .icon {
        font-size: 1.5em;
    }

    .section-action .btn-secondary {
        font-size: 1em;
    }

    /* -------------------------------------- */
    /* Services Section */
    /* -------------------------------------- */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
        gap: 10px;
    }

    .service-card {
        padding: 10px;
    }

    .service-card h3 {
        font-size: 1em;
    }

    .services-cta-box-section {
        padding: 10px 0;
        background-color: #ffffff;
        text-align: center;
        font-size: 0.5em;
    }

    .services-cta-box {
        background-color: #053c27;
        padding: 10px 25px;
        border-radius: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        transition: all 0.4s ease;
        border: 1px solid rgba(0, 163, 152, 0.1);
    }

    /* -------------------------------------- */
    /* Portfolio Section */
    /* -------------------------------------- */
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .portfolio-item img,
    .portfolio-item video {
        width: 100%;
        height: auto;
    }

    .portfolio-caption h4 {
        font-size: 0.9em;
    }

    .item-overlay {
        height: 200px;
    }

    /* -------------------------------------- */
    /* Footer Section */
    .footer-content-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
    .footer-logo {
    flex: 1.5;
    min-width: 50px;
    max-width: 150px;
    text-align: left;
    order: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content:flex-end;
}

    .footer-logo img {
        width: 70px;
        height: auto;
        border-radius: 50%;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .footer-logo img:hover {
        transform: scale(1.08);
        opacity: 0.85;
    }

    /* تعديل النصوص */
    .footer-content-grid p,
    .footer-content-grid h3 {
        font-size: 0.8em;
        line-height: 1.4;
        margin: 5px 0;
    }
.footer-links h3
{
            font-size: 0.9em;

}
.footer-links li {
    margin-bottom: 5px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    padding: 2px 0;
    display: block;
    text-align: right;
    transition: color 0.3s ease;
}
.footer-links .social-icons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.footer-links .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 20%;
    background-color: var(--background-light);
    color: var(--dark-blue);
    font-size: 1em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-bottom-bar {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0 0;
    margin-top: 5px;
}

.footer-bottom-bar p {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.8);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 1em;
    line-height: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}


    /* Footer container */
    footer {
        height: auto;
        padding: 20px ;
    }
}