/* in styles.css or globals.css */
@font-face {
    font-family: "NeueMontreal";
    src: url("/fonts/NeueMontreal-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "NeueMontreal";
    src: url("/fonts/NeueMontreal-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: "NeueMontreal", sans-serif;
}

/* .text-stroke-white {
  -webkit-text-stroke: 3px #e82424; 
  paint-order: stroke fill; 
} */

.hero-slider {
    height: 80vh; /* Set a specific height */
}

.slide {
    transition: opacity 1s ease-in-out;
}

.slide-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* Start slightly zoomed in */
    transition: transform 7s linear;
}

/* The Ken Burns (zoom) effect for the active slide */
.slide.active .slide-bg {
    transform: scale(1); /* Zoom out to normal scale over 7s */
}

/* Text Animation styles */
.slide-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide.active .slide-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for text elements */
.slide.active .slide-content .tagline {
    transition-delay: 0.3s;
}
.slide.active .slide-content .title {
    transition-delay: 0.5s;
}
.slide.active .slide-content .description {
    transition-delay: 0.7s;
}
.slide.active .slide-content .action-button {
    transition-delay: 0.9s;
}

/* --- Navigation Styles --- */

/* .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );
} */

[dir="rtl"] .hero-overlay {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

a {
    cursor: pointer;
}

.nav-link {
    font-size: small;
    position: relative;
    padding-bottom: 4px;
    cursor: pointer;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0%;
    height: 2px;
    background-color: #e82424;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.social-icon {
    border: 1px solid #4b5563;
    color: #d1d5db;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: #e82424;
    color: white;
    border-color: #e82424;
}
.flip-card-container {
    background-color: transparent;
    width: 100%;
    height: 420px; /* Adjusted height for content */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d; /* ✅ FIXED TYPO */
}

.flip-card-container:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; /* ✅ Ensures text doesn’t mirror */
    top: 0;
    left: 0;
}

.flip-card-back {
    transform: rotateY(180deg);
}
/* Add these styles inside the <style> tag in your <head> */

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.15) translate(5px, -5px);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.kenburns-image {
    animation: kenburns 20s ease-in-out infinite;
}

/* Add/Replace these styles inside the <style> tag in your <head> */

/* Slides are full-bleed with zero spacing */
.projects-carousel,
.projects-carousel .swiper,
.projects-carousel .swiper-wrapper,
.projects-carousel .swiper-slide {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.projects-carousel {
    width: 100%;
    height: 100%;
}

/* Slide item */
.projects-carousel__slide {
    position: relative;
    height: 60vh;
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
}

/* Parallax image covers completely with no inset gaps */
.projects-carousel__image {
    position: absolute;
    inset: 0;
    width: 155%; /* Oversize for parallax */
    height: 100%;
    left: -39%; /* Center the oversized image */
    background-size: cover;
    background-position: center;
}

/* Gradient overlay for text readability (doesn't add layout gap) */
.projects-carousel__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        transparent 70%
    );
    z-index: 1;
}

/* Overlay content (doesn't add outer spacing) */
.projects-carousel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* allow edge-to-edge */
    padding: 2rem;
    z-index: 2;
    color: white;
}
.projects-carousel__content h3 {
    font-size: 2rem;
    font-weight: 800;
}
.projects-carousel__content p {
    font-size: 1rem;
    color: #a0aec0;
    margin-top: 0.5rem;
}

.projects-carousel__tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #e82424;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    z-index: 2;
}
.projects-carousel__category {
    position: absolute;
    top: 1rem;
    left: 37%;
    transform: translateX(-50%);
    background-color: rgba(26, 32, 44, 0.7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    z-index: 2;
}

/* Navigation */
.projects-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #e82424;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.projects-carousel__nav:hover {
    background-color: #2c3a5a;
    color: white;
}
.projects-carousel__nav--prev {
    left: 1rem;
}
.projects-carousel__nav--next {
    right: 1rem;
}

@media (max-width: 1023px) {
    .projects-carousel__nav {
        display: none;
    }
}

/* Flip only text content in RTL mode */
[dir="rtl"] #webSection,
[dir="rtl"] #webSection *,
[dir="rtl"] .projects-carousel__content,
[dir="rtl"] .projects-carousel__content * {
    text-align: right;
    direction: rtl;
}

/* Keep rest of layout same (slider, images, etc.) */
[dir="rtl"] .projects-carousel {
    direction: ltr; /* keeps swiper normal */
}

/* Add these styles inside the <style> tag in your <head> */

/* Styles for the on-scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles for when the modal is active */
body.modal-open {
    overflow: hidden;
}

#feature-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

#feature-modal.is-active #modal-content {
    transform: scale(1);
}

/* Add these styles inside the <style> tag in your <head> */

/* Pulsating effect for the video play button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 181, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(251, 181, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 181, 0, 0);
    }
}
.video-play-button {
    animation: pulse 2s infinite;
}

/* Decorative line hover effect for the top paragraph */
.paragraph-line-hover {
    position: relative;
    padding-bottom: 1rem;
}
.paragraph-line-hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 25%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.4s ease;
}
.paragraph-line-hover:hover::after {
    width: 100%;
    background-color: #fbb500; /* custom-yellow */
}

/* Styles for when the video modal is active */
body.modal-open {
    overflow: hidden;
}
#video-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}
#video-modal.is-active > div {
    /* Target the inner container for transform */
    transform: scale(1);
}

/* Add these styles inside the <style> tag in your <head> */

.testimonial-card {
    position: relative;
    background-color: white;
    padding: 2.5rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    text-align: left;
    height: 100%;
    /* 3D Tilt Effect Setup */
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card__body {
    color: #4b5563; /* gray-600 */
    line-height: 1.75;
    padding-bottom: 3rem; /* Space for the button */
}

.testimonial-card__button {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    background-color: #fbb500; /* custom-yellow */
    color: black;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
}

.testimonial-card__button:hover {
    background-color: #f59e0b; /* amber-500 */
}

.testimonial-card__quote-bg {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 6rem;
    color: #f3f4f6; /* gray-100 */
    z-index: 0;
    line-height: 1;
}

.testimonial-card__number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-weight: bold;
    color: #d1d5db; /* gray-300 */
}

/* Custom Swiper Pagination */
.testimonials-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #d1d5db; /* gray-300 */
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background-color: #fbb500; /* custom-yellow */
    transform: scale(1.2);
}

/* Clients Carousel Navigation */
.clients-slider {
    position: relative;
}
.clients-prev,
.clients-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.clients-prev {
    left: 10px;
}
.clients-next {
    right: 10px;
}

/* Add these styles inside the <style> tag in your <head> */

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #4b5563; /* gray-600 */
    color: #9ca3af; /* gray-400 */
    transition: all 0.3s ease;
}
.footer-social-icon:hover {
    background-color: #e82424; /* custom-yellow */
    border-color: #e82424;
    color: black;
}

.footer-service-link {
    position: relative;
    padding-left: 20px; /* Space for the dash */
    transition: color 0.3s ease;
}
.footer-service-link:hover {
    color: #e82424; /* custom-yellow */
}
.footer-service-link::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: #e82424; /* custom-yellow */
    font-weight: bold;
}

.footer-download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #e82424; /* custom-yellow */
    color: white;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease;
}
.footer-download-btn:hover {
    background-color: #2c3a5a; /* amber-500 */
}
.footer-download-btn > i:first-child {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}
.footer-download-btn > span {
    flex-grow: 1;
    text-align: left;
}

/* Make sure section/container can position children */
.scroll-lines,
.scroll-lines .container {
    position: relative;
}

.scroll-line {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    /* default thickness/color overridden by JS via CSS vars */
    --thickness: 3px;
    --color: #f9b233;
    background: var(--color);
    will-change: transform;
    transition: none; /* direct scroll mapping (bidirectional) */
}

/* Horizontal base (JS toggles these per phase) */
.scroll-line[data-orientation="h"] {
    left: 0;
    right: 0;
    height: var(--thickness);
    transform: scaleX(0);
}

/* Vertical base */
.scroll-line[data-orientation="v"] {
    top: 0;
    bottom: 0;
    width: var(--thickness);
    transform: scaleY(0);
}

/* Add this style inside the <style> tag in your <head> */

.breadcrumb-line-hover {
    position: relative;
    height: 2px; /* Set a height for the container */
    background-color: rgba(255, 255, 255, 0.4);
}
.breadcrumb-line-hover::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%; /* Starts with no width */
    background-color: #fbb500; /* custom-yellow */
    transition: width 0.4s ease-out;
}
/* The parent div is a flex container, so hovering anywhere in the column will trigger this */
div:has(> .breadcrumb-line-hover):hover .breadcrumb-line-hover::after {
    width: 25%; /* Expands to 25% on hover */
}

/* ========================================================================== */
/*           COMPANY HISTORY TIMELINE STYLES (For About Us Page)            */
/* ========================================================================== */

.history-timeline-v2 {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical dashed line (visible on desktop) */
.history-timeline-v2::after {
    content: "";
    position: absolute;
    width: 2px;
    /* Create a dashed line with a background image */
    background-image: linear-gradient(
        to bottom,
        #cbd5e1 40%,
        rgba(255, 255, 255, 0) 0%
    );
    background-position: left;
    background-size: 2px 10px;
    background-repeat: repeat-y;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    display: none; /* Hidden on mobile by default */
}

/* Each timeline item (row) */
.history-timeline-v2__item {
    padding: 10px 0;
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.history-timeline-v2__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* The circle icon on the line */
.history-timeline-v2__icon {
    position: absolute;
    width: 48px;
    height: 48px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #e82424; /* custom-yellow */
    border-radius: 50%;
    z-index: 1;
    display: none; /* Hidden on mobile by default */
    align-items: center;
    justify-content: center;
    color: #e82424; /* custom-yellow */
    font-size: 1.25rem;
}

/* The content box */
.history-timeline-v2__content {
    padding: 1.5rem;
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.375rem; /* rounded-md */
    text-align: center;
}

.history-timeline-v2__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937; /* gray-800 */
}

.history-timeline-v2__description {
    margin-top: 0.75rem;
    color: #4b5563; /* gray-600 */
    line-height: 1.75;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop Layout (min-width: 1024px) */
@media screen and (min-width: 1024px) {
    /* Show the line and icons on desktop */
    .history-timeline-v2::after,
    .history-timeline-v2__icon {
        display: flex;
    }

    .history-timeline-v2__item {
        width: 50%;
        padding: 0 40px; /* Add horizontal spacing */
    }

    /* Left side items */
    .history-timeline-v2__item:nth-child(odd) {
        left: 0;
        text-align: right;
    }
    .history-timeline-v2__item:nth-child(odd) .history-timeline-v2__content {
        text-align: right;
    }

    /* Right side items */
    .history-timeline-v2__item:nth-child(even) {
        left: 50%;
        text-align: left;
    }
    .history-timeline-v2__item:nth-child(even) .history-timeline-v2__content {
        text-align: left;
    }
}
