@import url("./assets/font.css");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* font-family: "TheYearOfHandicrafts", sans-serif; */
    /* transition: all 0.3s ease; */
}

*::selection {
    background-color: var(--secondary-golden-color);
    color: black;
}

html.smooth-scroll-enabled {
    scroll-behavior: smooth;
}

body,
html {
    width: 100%;
    min-height: 100%;
    transition: direction 0.3s ease;
}

/* RTL Typography Adjustments */
html[dir="rtl"] * {
    font-family: "din-next-regular", sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    font-family: "TheYearOfHandicrafts", sans-serif !important;
    /* letter-spacing: 0; */
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--green-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.loader-svg {
    position: absolute;
    width: 512px;
    max-width: 100%;
    height: auto;
    /* left: 50%; */
    /* top: 50%; */
    /* transform: translate(-50%, -50%); */
}

.loader-svg path {
    stroke: #eccf9c;
    stroke-width: 3;
    fill: transparent;
    filter: drop-shadow(0 0 8px rgba(236, 207, 156, 0.4));
}

/* Loader SVG layering */
.loader-svg-1 { z-index: 3; }
.loader-svg-2 { z-index: 2; }
.loader-svg-3 { z-index: 3; }

/* Hero Decorative SVGs */
.hero-deco-svg {
    position: absolute;
    opacity: 0.2;
    display: none;
    pointer-events: none;
    z-index: 1;
}

.hero-deco-svg path {
    fill: #eccf9c;
}

.hero-deco-svg-1 {
    top: 10%;
    left: 10%;
    width: 500px;
    /* height: auto; */
}

.hero-deco-svg-3 {
    bottom: 17%;
    right: 10%;
    width: 500px;
    /* height: auto; */
}


#main {
    width: 100%;
    background-color: var(--green-color);
    color: white;
    position: relative;
    z-index: 2;
}


#main #nav img {
    opacity: 0;
}


#main #nav.scrolled img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#main #hero {
    width: 100%;
    position: relative;
    /* height: 100vh; */
    /* background-color: rgba(255, 0, 0, 0.399); */
    /* border: 2px solid red; */
}

#main #hero #heromain {
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

#hero #heromain > img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(
        to bottom,
        var(--green-color) 0%,
        var(--green-color) 100%
    );
    /* z-index: 100; */
}

#hero #heromain #herotext {
    /* background-color: var(--green-color); */
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* gap: 1.5rem; */
    padding-top: 4rem;
}

#hero #heromain #herotext h1 {
    font-size: 4rem;
    font-family: "didot-bold", sans-serif;
    /* width: 60%; */
    font-weight: 600;
    /* letter-spacing: 0.1rem; */
    line-height: 1.2;
    /* gap:0; */
}

#hero #heromain #herotext > p {
    font-size: 1.1rem;
    width: 50%;
    margin: 1.5rem 0;
    /* font-weight: 500; */
    /* font-family: "didot-medium"; */
    /* line-height: 1.5; */
    opacity: 0.7 !important;
}

#hero #herovid {
    width: 65%;
    height: 85vh;
    /* background-color: red; */
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

#hero #herovid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

#main #about {
    width: 100%;
    height: 170vh;
    position: relative;
    background-color: var(--green-color);
}

#about-content {
    display: flex;
    padding: 0 5vw;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
}

#main #about #ableft {
    width: 53%;
}

#main #about #abright {
    width: 45%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main #about #abright canvas {
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

html[dir="rtl"] #main #about #abright canvas,
html[dir="rtl"] #main #about #abright video {
    transform: scaleX(-1);
}

/* Show canvas on desktop, hide on mobile */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

#main #about #abright video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

@keyframes videoView {
    from{
        /* transform: scale(0.7); */
        opacity: 0;
    }
    to{
        opacity: 1;
        /* transform: scale(1); */
    }
    
}

#main #about #ableft {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
}

#main #about #abright {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: blue; */
}


#main #about #ableft > h1 {
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    line-height: 1;
    font-weight: 500;
}

#main #about #ableft p {
    font-size: 1.1rem;
    opacity: 0.7 !important;
    line-height: 1.5;
}

#main #about #ableft #abstat {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* justify-content: space-between;
    align-items: center; */
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

#main #about #ableft #abstat .abstatelem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

#main #about #ableft #abstat .abstatelem hr {
    width: 4rem;
    border: 1px solid white;
    opacity: 0.5;
}

#main #about #ableft #abstat .abstatelem > h1 {
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    font-weight: 400;
    line-height: 1;
    color: var(--secondary-golden-color);
}
#main #about #ableft #abstat .abstatelem > p {
    opacity: 1 !important;
    font-weight: 500;
}

/* About heading word animation */
#about #ableft h1 .word {
    display: inline-block;
    white-space: nowrap;
    font-family: 'didot-medium';
}

html[dir="rtl"] #about #ableft > h1{
    line-height: unset !important;
}
html[dir="rtl"] #about #ableft h1 .word{
    font-family: "TheYearOfHandicrafts", sans-serif !important;
}


#main #services {
    width: 100%;
    min-height: 120vh;
    background-color: var(--primary-black-color);
    padding: 0vw 0vw 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    overflow: hidden;
    position: relative;
}

#main #services > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.1;
    z-index: 0;
}

#main #services > h1 {
    margin-top: 3rem;
    padding: 0 5vw;
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    line-height: 1;
    font-weight: 500;
    width: 40%;
    /* background-color: red; */
}
html[dir="rtl"] #main #services > h1{
    line-height: unset;
    width: 100%;
}

#main #services .servpara {
    padding: 0vw 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#main #services .servpara > p {
    font-size: 1.1rem;
    opacity: 0.7 !important;
    width: 45%;
    line-height: 1.5;
}

#main #services .servpara .servbtn {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#main #services .servpara .servbtn button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 15px;
    background-color: var(--secondary-golden-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#main #services .servpara .servbtn button:hover {
    background-color: var(--green-color);
}

#main #services .servpara .servbtn button:hover img {
    filter: invert(1);
}

#main #services .servpara .servbtn button img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    transition: all 0.3s ease;
}

#main #services .servpara .servbtn button:nth-of-type(1) img {
    transform: rotate(-135deg);
}

#main #services .servpara .servbtn button:nth-of-type(2) img {
    transform: rotate(45deg);
}

#main #services .servcardslist{
    display: flex;
    /* padding-left: 40vw; */
    /* padding-right: 5vw; */
}

#main #services .servcardslist #servcardstrip {
    margin: 1rem 0;
    display: flex;
    gap: 3rem;
    /* background-color: red; */
    padding-left: 40vw;
    padding-right: 5vw;
}

html[dir="rtl"] #main #services .servcardslist #servcardstrip{
    padding-left: 5vw;
    padding-right: 40vw;
}

#main #services .servcardslist .servcard {
    position: relative;
    width: 450px;
    height: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 2.5rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

#main #services .servcardslist .servcard:nth-of-type(1) {
    background: url("./assets/images/home/services-branding-1.png") no-repeat
        center center/cover;
}
#main #services .servcardslist .servcard:nth-of-type(2) {
    background: url("./assets/images/home/services-website-1.png") no-repeat
        center center/cover;
}
#main #services .servcardslist .servcard:nth-of-type(3) {
    background: url("./assets/images/home/services-design-1.png") no-repeat center
        center/cover;
}
#main #services .servcardslist .servcard:nth-of-type(4) {
    background: url("./assets/images/home/services-social-1.png") no-repeat center
        center/cover;
}

html[dir="rtl"] #main #services .servcardslist .servcard:nth-of-type(1) {
    background: url("./assets/images/home/services-branding-1-ar.png") no-repeat
        center center/cover;
}
html[dir="rtl"] #main #services .servcardslist .servcard:nth-of-type(2) {
    background: url("./assets/images/home/services-website-1-ar.png") no-repeat
        center center/cover;
}
html[dir="rtl"] #main #services .servcardslist .servcard:nth-of-type(3) {
    background: url("./assets/images/home/services-design-1-ar.png") no-repeat center
        center/cover;
}
html[dir="rtl"] #main #services .servcardslist .servcard:nth-of-type(4) {
    background: url("./assets/images/home/services-social-1-ar.png") no-repeat center
        center/cover;
}

#main #services .servcardslist .servcard:hover {
    transform: scale(1.05);
}

#main #services .servcardslist .servcard:hover button {
    background-color: var(--secondary-golden-color);
    transition: all 0.3s ease;
}

#main #services .servcardslist .servcard:hover button img {
    transform: rotate(45deg);
    filter: invert(0);
    transition: all 0.3s ease;
}
.servcard h1 {
    font-size: 1.5rem;
    color: var(--secondary-golden-color);
    font-family: "didot-bold", sans-serif;
    line-height: 1;
    font-weight: 500;
}

.servcard p {
    font-size: 1rem;
    opacity: 0.7 !important;
    line-height: 1.5;
    width: 80%;
}

html[dir="rtl"] .servcard p{
    font-size: 1.1rem;
}

.servcard button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.319);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.servcard button img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    filter: invert(1);
}
html[dir="rtl"] .servcard:hover button img{
    transform: rotate(-135deg) !important;

}
html[dir="rtl"] .servcard button img {
    transform: rotate(-90deg);
}

#main #featured {
    width: 100%;
    min-height: 100vh;
    background-color: var(--primary-black-color);
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 1.5rem;
    padding: 5vw 0vw 0 0;
}

#main #featured > h1 {
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    line-height: 1;
    font-weight: 500;
    width: 40%;
    padding: 0 5vw;
}

html[dir="rtl"] #main #featured > h1{
    line-height: unset;
}
#main #featured > p {
    font-size: 1.1rem;
    opacity: 0.7 !important;
    width: 60%;
    line-height: 1.5;
    padding: 0 5vw;
}
#main #featured #projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
}

#main #featured #projects .projectcard {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
}

#main #featured #projects .projectcard picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#main #featured #projects .projectcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: 1;
    /* filter: blur(1px); */
    filter: brightness(0.9);
}

#main #featured #projects .projectcard *:not(picture):not(img) {
    position: relative;
    z-index: 2;
}

#main #featured #projects .projectcard h1 {
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 500;
    margin-left: 4rem;
    /* Add text shadow  */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

#main #featured #projects .projectcard .prtags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 50%;
    margin-bottom: 5rem;
    margin-left: 4rem;
}

html[dir="rtl"] #main #featured #projects .projectcard h1,
html[dir="rtl"] #main #featured #projects .projectcard .prtags{
    margin-left: 0;
    margin-right: 4rem;
}

#main #featured #projects .projectcard .prtags .prtag {
    padding: 0.5rem 2rem;
    background-color: rgba(16, 15, 15, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    /* font-weight: 00; */
    text-transform: uppercase;
    /* color: black; */
}
html[dir="rtl"] #main #featured #projects .projectcard .prtags .prtag{
    font-size: 1rem;
    line-height: 1.9;
    
}

#main #testimonials {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    padding: 2vw 0vw 0 0;
    gap: 1.5rem;
    overflow-x: hidden;
    /* background-color: black; */
}

#main #testimonials .tag {
    margin-bottom: 0;
    padding: 0.5rem 1.5rem;
}

#main #testimonials .tag img {
    width: 15px;
    height: 15px;
    object-fit: cover;
}
#main #testimonials #testtop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
}

#main #testimonials #testtop > h1 {
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    line-height: 1.2;
    font-weight: 500;
    width: 40%;
    text-align: center;
}

#main #testimonials #testtop > p {
    font-size: 1.1rem;
    opacity: 0.7 !important;
    width: 40%;
    text-align: center;
    line-height: 1.5;
}

#main #testimonials #testbtm {
    max-width: 100vw;
    display: flex;
    gap: 2rem;
    /* justify-content: center; */
}

#main #testimonials #testcardstrip {
    display: flex;
    width: max-content;
    gap: 2rem;
    margin-top: 2.5rem;
    animation: moveToRight 30s linear infinite;
}

@keyframes moveToRight {
    from {
        transform: translateX(calc(-50% - 1rem));
    }
    to {
        transform: translateX(0);
    }
}

#main #testimonials #testcardstrip .testcard {
    width: 25rem;
    /* height: 15rem; */
    padding: 2rem 1.5rem;
    background-color: rgba(16, 15, 16, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
}

#main #testimonials #testcardstrip .testcard::after {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(16, 15, 16, 0.6);
    /* background-color: var(--primary-black-color); */
    position: absolute;
    clip-path: circle(10% at 100% 0%);
    transition: all 1s ease;
    /* mask-image: url('./assets/images/logo.svg'); */
    /* -webkit-mask-image: url('./assets/images/logo.svg'); */
    /* mask-size: 80%;
    -webkit-mask-size: 80%;
    mask-position: center;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat; */
}

#main #testimonials #testcardstrip .testcard:hover::after {
    clip-path: circle(100% at 50% 50%);
}

#main #testimonials #testcardstrip:hover{
    animation-play-state: paused;
}



#main #testimonials #testcardstrip .testcard .stars {
    display: flex;
    gap: 0.3rem;
}

#main #testimonials #testcardstrip .testcard .stars img {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

#main #testimonials #testcardstrip .testcard h3 {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#main #testimonials #testcardstrip .testcard h3 img {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

#main #testimonials #testcardstrip .testcard p {
    font-size: 0.9rem;
    opacity: 0.7 !important;
    line-height: 1.5;
}

#main #clients {
    width: 100%;
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    overflow-x: hidden;
    padding: 3.5rem 0;
    background-color: rgb(239, 239, 239);
    color:var(--green-color);
}

#main #clients #clientstop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
}

#main #clients #clientstop > h1 {
    font-size: 3rem;
    font-family: "didot-bold", sans-serif;
    line-height: 1;
    font-weight: 500;
    width: 40%;
    text-align: center;
}

#main #clients p {
    font-size: 1.1rem;
    opacity: 0.7 !important;
    width: 40%;
    text-align: center;
    line-height: 1.5;
}

#main #clients #clientsbtm {
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: auto;
    direction: ltr !important; /* Force LTR for consistent scroll behavior */
}

#main #clients #clientsbtm::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#main #clients #clientwrapper {
    width: max-content;
    display: flex;
    gap: 2rem;

    /* Animation removed - now controlled by JS */
}

@keyframes ClientsMoveToRight {
    from {
        transform: translateX(calc(-50% - 1rem));
    }
    to {
        transform: translateX(0);
    }
}

/* Draggable cursor states */
#main #clients #clientsbtm {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

#main #clients #clientsbtm.grabbing {
    cursor: grabbing !important;
}

#main #clients #clientsbtm * {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
#main #clients #clientwrapper .logo:last-child {
    margin-right: 2rem;
}
#main #clients #clientwrapper .logo {
    width: 230px;
    height: 110px;
    background-color: rgba(239, 239, 239, 0.9);
    border: 0.5px solid #3a4b4366;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;

}


#main #clients #clientwrapper .logo::after {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(239, 239, 239, 0.6);
    /* background-color: var(--primary-black-color); */
    position: absolute;
    clip-path: circle(10% at 100% 0%);
    transition: all 0.5s ease;    
}

#main #clients #clientwrapper .logo:hover::after {
    clip-path: circle(100% at 50% 50%);
}

/* Removed animation-play-state as scroll is now JS controlled */

#main #clients #clientwrapper .logo img {
    width: 100%;
    /* height: 80%; */
    object-fit: cover;
    /* filter: invert(1); */
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablets and Small Desktops (769px - 1024px) */
@media screen and (max-width: 1024px) {
    /* Loader Responsive */
    .hero-deco-svg-1 {
        width: 300px !important;
        top: 15% !important;
        left: 3% !important;
    }

    .hero-deco-svg-3 {
        width: 300px !important;
        bottom: 3% !important;
        right: 3% !important;
    }

    /* About Section */
    #main #about {
        padding: 5vw 3vw;
        height: auto;
        min-height: 100vh;
    }

    #main #about #ableft > h1 {
        font-size: 2.5rem;
    }

    #main #about #ableft p {
        font-size: 1rem;
    }

    #main #about #ableft #abstat .abstatelem > h1 {
        font-size: 2.5rem;
    }

    /* Services Section */
    #main #services > h1 {
        font-size: 2.5rem;
        width: 50%;
    }

    #main #services .servpara > p {
        font-size: 1rem;
        width: 50%;
    }

    #main #services .servcardslist .servcard {
        width: 400px;
        height: 450px;
    }

    /* Featured Projects */
    #main #featured > h1 {
        font-size: 2.5rem;
        width: 50%;
    }
    #main #featured > p {
        font-size: 1rem;
        width: 50%;
    }

    #main #featured #projects .projectcard h1 {
        font-size: 2.5rem;
        margin-left: 3rem;
    }

    #main #featured #projects .projectcard .prtags {
        width: 40%;
        margin-left: 3rem;
        margin-bottom: 4rem;
    }

    /* Testimonials */
    #main #testimonials #testtop > h1 {
        font-size: 2.5rem;
        width: 50%;
    }

    #main #testimonials #testtop > p {
        font-size: 1rem;
        width: 50%;
    }
    #main #clients #clientstop > h1 {
        font-size: 2.5rem;
        width: 50%;
        text-align: center;
    }

    /* Clients */
    #main #clients p {
        font-size: 1rem;
        width: 50%;
    }

    /* Only apply margin for Safari browser */
    @supports (-webkit-hyphens:none) {
        #main #clients #clientwrapper {
            margin-bottom: 2rem;
        }
    }

}

/* Mobile and Tablets (up to 768px) */
@media screen and (max-width: 768px) {
    /* Loader Responsive */
    #loader {
        overflow: hidden;
    }

    .loader-svg {
        max-width: 90vw;
        height: auto;
    }


    /* Hero Section Responsive */
    #main #hero #heromain {
        height: auto;        
        min-height: 70vh;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 0 5vw;
        padding-bottom: 15vh;
    }

    #hero #heromain #herotext {
        padding-top: 2rem;
        width: 100%;
    }

    /* #hero #heromain #herotext .tag {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
        gap: 1rem;
    }

    #hero #heromain #herotext .tag img {
        width: 12px;
        height: 12px;
    } */

    #hero #heromain #herotext h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    #hero #heromain #herotext > p {
        font-size: 0.95rem;
        width: 100%;
        margin: 1rem 0;
    }

    #hero #herovid {
        width: 90%;
        height: 50vh;
        margin-bottom: 3rem;
    }

    /* About Section */
    #main #about {
        height: auto;
        min-height: 100vh;
        padding: 5vw;
    }

    #about-content {
        flex-direction: column-reverse;
        padding: 0;
        gap: 2rem;
        height: auto;
        min-height: 100vh;
    }

    #main #about #ableft {
        width: 100%;
        gap: 1rem;
        order: 2;
    }

    #main #about #abright {
        width: 100%;
        height: 60vh;
        order: 1;
    }

    #main #about #abright canvas {
        width: 100%;
        height: 100%;
    }

    /* Hide canvas, show video on mobile */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    #main #about #abright video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #main #about #ableft > h1 {
        font-size: 2rem;
    }

    #main #about #ableft p {
        font-size: 0.95rem;
    }

    #main #about #ableft #abstat {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        /* margin-top: 2rem; */
    }

    #main #about #ableft #abstat .abstatelem > h1 {
        font-size: 2.5rem;
    }

    /* Services Section */
    #main #services {
        min-height: auto;
        padding: 5vw 0vw;
    }

    #main #services > h1 {
        font-size: 2rem;
        width: 90%;
        padding: 0 5vw;
    }

    #main #services .servpara {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    #main #services .servpara > p {
        width: 100%;
        font-size: 0.95rem;
    }

    #main #services .servpara .servbtn {
        display: none;
    }

    #main #services .servcardslist #servcardstrip {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        padding: 0 5vw;
    }
    html[dir="rtl"] #main #services .servcardslist #servcardstrip{
        padding: 0 5vw;
    }

    #main #services .servcardslist .servcard {
        width: 100%;
        height: 400px;
    }

    /* Featured Projects */
    #main #featured {
        padding: 10vw 0vw 0 0;
    }

    #main #featured > h1 {
        font-size: 2rem;
        width: 90%;
    }

    #main #featured > p {
        font-size: 0.95rem;
        width: 90%;
    }
    #main #featured #projects .projectcard {
        height: 100vh;
    }

    #main #featured #projects .projectcard h1 {
        font-size: 2rem;
        margin-left: 2rem;
    }

    #main #featured #projects .projectcard .prtags {
        width: 80%;
        margin-left: 2rem;
        margin-bottom: 3rem;
    }

    #main #featured #projects .projectcard .prtags .prtag {
        padding: 0.4rem 1.5rem;
        font-size: 0.8rem;
    }

    /* Testimonials */
    #main #testimonials {
        height: auto;
        min-height: 80vh;
        /* padding: 5vw 0vw; */
    }

    #main #testimonials #testtop > h1 {
        font-size: 2rem;
        width: 90%;
    }

    #main #testimonials #testtop > p {
        font-size: 0.95rem;
        width: 90%;
    }

    #main #testimonials #testcardstrip .testcard {
        width: 20rem;
    }

    /* Clients */
    #main #clients {
        height: auto;
        min-height: 25vh;
        /* padding: 3rem 0; */
    }
    #main #clients #clientstop > h1 {
        font-size: 2rem;
        width: 90%;
        text-align: center;
    }

    #main #clients p {
        font-size: 0.95rem;
        width: 90%;
    }

    #main #clients #clientsbtm {
        max-width: 90vw;
    }

    #main #clients #clientwrapper .logo {
        width: 150px;
        height: 60px;
    }
}

/* Loader responsive */
/* @media screen and (min-width: 1025px) {
    .loader-svg {
        width: 380px;
        height: auto;
    }
} */

@media screen and (max-width: 1024px) {
    #loader {
        padding: 2rem;
    }
    
    .loader-svg {
        max-width: 280px;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    #loader {
        padding: 1.5rem;
    }
    
    .loader-svg {
        max-width: 200px;
        height: auto;
    }
    .loader-svg path {
        stroke-width: 2.5;
    }
}

@media screen and (max-width: 480px) {
    #loader {
        padding: 1rem;
    }
    
    .loader-svg {
        max-width: 150px;
        height: auto;
    }
    .loader-svg path {
        stroke-width: 2;
    }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    #hero #heromain #herotext h1 {
        font-size: 2rem;
    }

    #hero #heromain #herotext > p {
        font-size: 0.9rem;
    }
    html[dir="rtl"] #hero #heromain #herotext > p{
        font-size: 1rem;
    }

    #hero #herovid {
        width: 95%;
        height: 40vh;
    }

    /* About Section */
    #main #about #ableft > h1 {
        font-size: 1.8rem;
    }

    #main #about #ableft p {
        font-size: 0.9rem;
    }

    #main #about #ableft #abstat .abstatelem > h1 {
        font-size: 2rem;
    }

    /* Services Section */
    #main #services > h1 {
        font-size: 1.8rem;
    }

    #main #services .servcardslist .servcard {
        height: 350px;
    }

    /* Featured Projects */
    #main #featured > h1 {
        font-size: 1.8rem;
    }
    #main #featured > p {
        font-size: 0.9rem;
    }

    #main #featured #projects .projectcard h1 {
        font-size: 1.5rem;
        margin-left: 1.5rem;
    }

    html[dir="rtl"] #main #featured #projects .projectcard h1{
        font-size: 2rem;
    }

    #main #featured #projects .projectcard .prtags {
        margin-left: 1.5rem;
        margin-bottom: 2.5rem;
    }

    #main #featured #projects .projectcard .prtags .prtag {
        padding: 0.3rem 1.2rem;
        font-size: 0.7rem;
    }

    /* Testimonials */
    #main #testimonials #testtop > h1 {
        font-size: 1.8rem;
    }

    #main #testimonials #testcardstrip .testcard {
        width: 18rem;
        padding: 1.5rem 1.2rem;
    }

    /* Clients */
    #main #clients #clientwrapper .logo {
        width: 130px;
        height: 55px;
    }

    #main #clients #clientstop > h1 {
        font-size: 1.8rem;
        width: 90%;
        text-align: center;
    }
}
