/* Custom Font */
@font-face {
    font-family: 'AGCBold';
    src: url('AGCBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --hero-image: url('assets/web.webp');
    --hero-image-mobile: url('assets/1.webp');
    --values-header-image: url('assets/web2.webp');
    --values-header-image-mobile: url('assets/2.webp');
    --why-footer-image: url('assets/web3.webp');
    --why-footer-image-mobile: url('assets/3.webp');
}

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'AGCBold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4a6352 0%, #5a7563 50%, #4a6352 100%);
    color: white;
    min-height: 100vh;
}

body.loading {
    overflow: hidden;
}

main {
    margin: 0;
    padding: 0;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.value-box:nth-child(1) { transition-delay: 0.1s; }
.value-box:nth-child(2) { transition-delay: 0.2s; }
.value-box:nth-child(3) { transition-delay: 0.3s; }

.why-box:nth-child(1) { transition-delay: 0.1s; }
.why-box:nth-child(2) { transition-delay: 0.2s; }
.why-box:nth-child(3) { transition-delay: 0.3s; }
.why-box:nth-child(4) { transition-delay: 0.4s; }

.footer-column:nth-child(1) { transition-delay: 0.1s; }
.footer-column:nth-child(2) { transition-delay: 0.2s; }
.footer-column:nth-child(3) { transition-delay: 0.3s; }
.footer-column:nth-child(4) { transition-delay: 0.4s; }

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6352 0%, #5a7563 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    animation: fadeInScale 1s ease-out;
}

.loader-logo img {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
}

.loader-spinner {
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #c9a876;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: white;
    font-size: 18px;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
}

/* Top Navigation */
.top-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    margin: 0;
}

.contact-link {
    color: white;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.logo-container {
    height: 80px;
}

.logo-container img {
    height: 100%;
    width: auto;
    object-fit: contain;

}


.hero-container {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    margin: 0;
    padding: 0;
}


/* Hero Section */
.hero {
    width: 100%;
    position: relative;
    background: var(--hero-image) center / cover no-repeat;
    margin: 0;
    padding: 0;
}

.hero-image {
    width: 100%;
    min-height: 95vh;
}

/* Scroll Indicator */
.scroll-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    padding: 30px 0;
    background: white;
}

.scroll-indicator p {
    color: #4a6352;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 8px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Floating Div  */
.floating-div {
    display: flex;
    justify-content: space-between;
    width: 80%;
    padding: 2rem;
    gap: 5.5rem;
    background-color: #f7f3f2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -110%);
    animation: floatIn 1s ease-out;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -40%) scale(1);
    }
}

.floating-div div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.floating-div div h3 {
    color: #68736B;
    font-weight: normal;
}


.floating-div div svg {
    align-self: self-start;
    transform: rotate(180deg);
}

/* Values Section */
.values-section {
    margin-top: 0;
    background: white;
    padding-top: 0;
    position: relative;
}

.values-header-image {
    width: 100%;
    background: white;
    padding: 500px 0 0 0;
    text-align: center;
    min-height: 200px;
    background-image: var(--values-header-image);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.values-container {
    background: #f5f5f5;
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.value-box {
    width: 100%;
    max-width: 900px;
    background: #f9f9f9;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.value-box:hover {
    transform: translateX(-8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.value-label {
    background: linear-gradient(135deg, #a8845f 0%, #9a7653 100%);
    color: white;
    font-size: 20px;
    font-weight: 500;
    padding: 8px 40px;
    text-align: center;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    writing-mode: horizontal-tb;
}

.value-content {
    background: #f9f9f9;
    color: #4a6352;
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 25px;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: normal;
}

/* Services Section */
.services-section {
    background: white;
    padding: 100px 40px 50px 40px;
    text-align: center;
}

.services-title {
    color: #4a6352;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: right;
    padding-right: 100px;
}


/* Splide Carousel Styling */

.swiper {
    width: 85%;
    height: auto;
    padding-bottom: 50px;
}

.swiper-wrapper {
    overflow: visible;
    height: 350px;
}

.swiper-slide img {
    width: 250px;
    height: 350px;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    margin: 0 auto;
}

.swiper-slide img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    display: none;
}

/* Swiper Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #4a6352;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    background: #4a6352;
}


/* Why Section */
.why-section {
    background: white;
    padding: 100px 40px 50px 40px;
    text-align: center;
}

.why-title {
    color: #4a6352;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: right;
    padding-right: 100px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.why-box {
    background: #f5f5f5;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.why-number {
    font-size: 56px;
    font-weight: bold;
    color: #c9a876;
    line-height: 1;
    flex-shrink: 0;
}

.why-text {
    color: #4a6352;
    font-size: 18px;
    line-height: 1.8;
    flex: 1;
    font-weight: normal;
}

.why-footer {
    color: #4a6352;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-weight: normal;
}

.why-footer-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.why-footer-image {
    width: 100%;
    margin-top: 50px;
    text-align: center;
    min-height: 200px;
    background-image: var(--why-footer-image);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.why-footer-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.bottom-text {
    color: #4a6352;
    font-size: 16px;
    line-height: 1.8;
    margin-top: -20px;
    text-align: center;
    font-weight: normal;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4a6352 0%, #5a7563 100%);
    padding: 60px 50px;
    margin-top: 0;
    border-radius: 50px 50px 0 0;
}

.footer-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-info {
    display: flex;
    justify-content: flex-start;
    gap: 80px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-item {
    margin-bottom: 0;
}

.footer-heading {
    color: #c9a876;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 8px;
    letter-spacing: 0px;
}

.footer-text {
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-text a {
    color: #d4d4d4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #c9a876;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* Responsive Design */
@media (min-width: 1025px) {
    .bottom-text {
        margin-top: 30px;
    }
}

@media (max-width: 1200px) {
    .values-container {
        padding: 60px 50px;
    }

    .value-box {
        max-width: 100%;
    }



}

@media (max-width: 1024px) {
    .floating-div {
        width: 85%;
        padding: 1.8rem;
        gap: 3rem;
    }

    .floating-div div h3 {
        font-size: 16px;
    }

    .swiper {
        width: 100%;
    }

    .swiper-slide img {
        width: 180px;
        height: 300px;
    }
}

@media (max-width: 768px) {

    .loader-logo img {
        height: 90px;
    }

    .spinner {
        width: 50px;
        height: 50px;
    }

    .loader-text {
        font-size: 16px;
    }

    .hero-container {
        margin-top: 0;
        padding-top: 0;
    }

    .hero {
        background: var(--hero-image-mobile) top center / cover no-repeat;
        min-height: 70vh;
        margin: 0;
        padding: 0;
    }

    .hero-image {
        min-height: 70vh;
        margin: 0;
        padding: 0;
    }

    .floating-div {
        display: none;
    }

    .floating-div div:last-child {
        display: none;
    }

    .floating-div div {
        gap: 8px;
    }

    .floating-div div h3 {
        font-size: 14px;
    }

    .floating-div div svg {
        width: 18px;
        height: 20px;
    }

    .scroll-indicator {
        display: flex;
        padding: 20px 0;
    }

    .scroll-indicator svg {
        width: 25px;
        height: 40px;
    }

    .scroll-indicator p {
        font-size: 13px;
    }

    .values-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .top-nav {
        padding: 15px 20px;
    }

    .contact-link {
        font-size: 16px;
    }

    .logo-container {
        height: 60px;
    }

    .values-header-image {
        background-image: var(--values-header-image-mobile);
        min-height: 0;
        padding: 0;
        margin: 0;
        display: none;
    }

    .values-container {
        padding: 40px 20px;
    }

    .value-box {
        flex-direction: column;
    }

    .value-label {
        font-size: 22px;
        padding: 20px;
        min-width: auto;
    }

    .value-content {
        font-size: 15px;
        padding: 25px 20px;
    }

    .services-section {
        padding: 60px 20px 40px;
    }

    .services-title {
        font-size: 28px;
        margin-bottom: 40px;
        padding-right: 20px;
    }

    .splide__slide img {
        width: 220px;
        height: 300px;
    }

    .splide__arrow {
        width: 40px;
        height: 40px;
    }

    .why-section {
        padding: 0 20px 30px;
    }

    .why-title {
        font-size: 28px;
        margin-bottom: 40px;
        padding-right: 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-box {
        padding: 30px 20px;
    }

    .why-number {
        font-size: 42px;
    }

    .why-text {
        font-size: 16px;
    }

    .why-footer {
        font-size: 15px;
    }

    .why-footer-image {
        background-image: var(--why-footer-image-mobile);
        min-height: 350px;
        
    }

    .footer {
        padding: 50px 15px 30px;
        border-radius: 30px 30px 0 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-logo {
        order: 1;
        justify-content: center;
        margin-bottom: 0;
        width: 100%;
    }

    .footer-logo img {
        height: 80px;
        display: block;
        margin: 0 auto;
    }

    .footer-info {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 25px;
        width: 100%;
        max-width: 100%;
    }

    .footer-column {
        text-align: center;
        width: 100%;
        padding: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-item {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
    }

    .footer-heading {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .footer-text {
        font-size: 13px;
        line-height: 1.8;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-text a {
        display: inline-block;
        direction: ltr;
        unicode-bidi: embed;
    }

    .footer-text br {
        display: block;
        content: "";
        margin: 3px 0;
    }
}

@media (max-width: 480px) {
    .hero-container {
        margin-top: 0;
        padding-top: 0;
    }

    .hero {
        background: var(--hero-image-mobile) top center / cover no-repeat;
        margin: 0;
        padding: 0;
    }

    .hero-image {
        min-height: 60vh;
        margin: 0;
        padding: 0;
    }

    .floating-div {
        width: 85%;
        padding: 0.8rem;
    }

    .floating-div div h3 {
        font-size: 13px;
    }

    .floating-div div svg {
        width: 16px;
        height: 18px;
    }

    .values-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .scroll-indicator {
        padding: 20px 0;
    }

    .scroll-indicator svg {
        width: 22px;
        height: 35px;
    }

    .scroll-indicator p {
        font-size: 12px;
    }

    .footer {
        padding: 40px 10px 25px;
    }

    .footer-content {
        max-width: 100%;
        overflow: hidden;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .footer-column {
        width: 100%;
        padding: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-item {
        width: 100%;
        max-width: 100%;
        padding: 0 3px;
    }

    .footer-logo {
        width: 100%;
    }

    .footer-logo img {
        height: 70px;
        display: block;
        margin: 0 auto;
    }

    .footer-heading {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .footer-text {
        font-size: 12px;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.7;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 5px;
    }

    .footer-text a {
        display: inline-block;
        direction: ltr;
        unicode-bidi: embed;
    }

    .footer-text br {
        display: block;
        content: "";
        margin: 2px 0;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsapp-pulse 2s infinite;
}

/* تأثير النبض المستمر */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* تأثير الحركة الخفيفة */
@keyframes whatsapp-float-move {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.3);
    animation: whatsapp-ripple 1.5s infinite;
    z-index: -1;
}

/* تأثير الموجة */
@keyframes whatsapp-ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}