@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.proj-opacity h3,
.proj-opacity p {
    overflow: hidden !important;
    scrollbar-width: none !important; /* Firefox */
}

.proj-opacity h3::-webkit-scrollbar,
.proj-opacity p::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}
/* Hover zamanı yaranan scrollbar və ya overlay simvolu tamamilə gizlədilir */
.advantages .adv-card,
.advantages .adv-content,
.advantages .adv-card-img,
.advantages .adv-card:hover,
.advantages .adv-card:hover .adv-card-img {
    overflow: hidden !important;
    scrollbar-width: none !important;
}

.advantages .adv-card::-webkit-scrollbar,
.advantages .adv-content::-webkit-scrollbar,
.advantages .adv-card-img::-webkit-scrollbar {
    display: none !important;
}

.advantages .adv-card-img::before,
.advantages .adv-card-img::after {
    content: none !important;
    display: none !important;
}
.sliderhome .slider .dots {
    overflow: hidden !important;
    scrollbar-width: none !important; /* Firefox */
}

.sliderhome .slider .dots::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari */
    width: 0 !important;
    height: 0 !important;
}
.projects-title,
.projects-title h2 {
    overflow: hidden !important;
    scrollbar-width: none !important; /* Firefox */
}

.projects-title::-webkit-scrollbar,
.projects-title h2::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari */
    width: 0 !important;
    height: 0 !important;
}



/* Home Slider Design */
.sliderhome {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    background-color: #000;
    z-index: 1;
}

.sliderhome .slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.sliderhome .slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.sliderhome .slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sliderhome .slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.sliderhome .slider .slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.436);
    z-index: 1;
    pointer-events: none;
}

.sliderhome .slider .slide .slider-text {
    position: absolute;
    top: 42%;
    left: 12%;
    right: 12%;
    max-width: 1920px;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    font-weight: 500;
}

.sliderhome .slider .slide .slider-text h2 {
    max-width: 1920px;
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
}

.sliderhome .slider .slide .slider-text p {
    margin-bottom: 24px;
    max-width: 1920px;

    font-size: 18px;
}

.sliderhome .slider .slide .slider-text a {
    position: relative;
    width: 180px;
    height: 40px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    margin-left: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sliderhome .slider .slide .slider-text a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.sliderhome .slider .slide .slider-text a:hover::after {
    width: 100%;
}

.sliderhome .slider .dots {
    position: absolute;
    bottom: 45px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.sliderhome .slider .dots .dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 16px;
    background: rgba(255, 255, 255, 0.459);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sliderhome .slider .dots .dot:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.679);
}

.sliderhome .slider .dots .dot.active {
    transform: scale(1.6);
    background-color: #c82127;
    border: 2px solid white;
}


/* Breakpoint: 996px */
@media screen and (max-width: 996px) {
    /* Slider home responsive styles */
    .sliderhome {
        height: 65vh;
    }

    .sliderhome .slider .slide .slider-text {
        left: 8%;
        right: 8%;
    }

    .sliderhome .slider .slide .slider-text h2 {
        font-size: 42px;
    }

    .sliderhome .slider .slide .slider-text p {
        font-size: 16px;
    }

    .sliderhome .slider .dots {
        bottom: 35px;
    }

    .sliderhome .slider .dots .dot {
        width: 18px;
        height: 18px;
        margin: 0 12px;
    }

}

/* Breakpoint: 765px */
@media screen and (max-width: 765px) {
    /* Slider home responsive styles */
    .sliderhome {
        height: 60vh;
    }

    .sliderhome .slider .slide .slider-text {
        left: 6%;
        right: 6%;
        top: 45%;
    }

    .sliderhome .slider .slide .slider-text h2 {
        font-size: 34px;
    }

    .sliderhome .slider .slide .slider-text p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .sliderhome .slider .slide .slider-text a {
        width: 160px;
        height: 36px;
        font-size: 14px;
    }

    .sliderhome .slider .dots {
        bottom: 25px;
    }

    .sliderhome .slider .dots .dot {
        width: 16px;
        height: 16px;
        margin: 0 10px;
    }


}

/* Breakpoint: 568px */
@media screen and (max-width: 568px) {
    /* Slider home responsive styles */
    .sliderhome {
        height: 55vh;
    }

    .sliderhome .slider .slide .slider-text {
        left: 4%;
        right: 4%;
        top: 48%;
    }

    .sliderhome .slider .slide .slider-text h2 {
        font-size: 28px;
    }

    .sliderhome .slider .slide .slider-text p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .sliderhome .slider .slide .slider-text a {
        width: 150px;
        height: 34px;
        font-size: 13px;
    }

    .sliderhome .slider .dots {
        bottom: 20px;
    }

    .sliderhome .slider .dots .dot {
        width: 14px;
        height: 14px;
        margin: 0 8px;
    }

    .sliderhome .slider .dots .dot.active {
        transform: scale(1.4);
    }


}

/* Services Section Styling */

.advantages {
    width: 100%;
    background-color: #fff;
    padding: 40px 0;
}

.advantages .adv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px 4%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

.advantages .adv-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.advantages .adv-card:hover {
    transform: scale(1.2);
    z-index: 2;
}

.advantages .adv-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.advantages .adv-content::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c82127;
    transition: width 0.4s ease-in-out;
}

.advantages .adv-card:hover .adv-content::after {
    width: 100%;
}

.advantages .adv-card:hover .adv-card-img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(342deg) brightness(89%) contrast(95%);
}

.advantages .adv-card:hover p {
    color: #c82127;
}

.advantages .adv-card-img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.advantages .adv-card p {
    text-transform: uppercase;
    font-weight: 600;
    color: black;
    font-size: clamp(10px, 0.9vw + 0.2rem, 13px);
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Divider xətti */
.advantages .adv-line {
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #e1e1e1;
}

.advantages .adv-card:last-child .adv-line {
    display: none;
}

@media screen and (min-width: 681px) and (max-width: 1024px) {
    .advantages .adv-container {
        gap: 15px;
        padding: 11px 3%;
    }

    .advantages .adv-card-img {
        width: 50px;
        height: 50px;
    }

    .advantages .adv-line {
        height: 50%;
    }
}

/* Responsivlik */
@media screen and (max-width: 768px) {
    .advantages .adv-container {
        gap: 15px;
    }

    .advantages .adv-card-img {
        width: 50px;
        height: 50px;
    }

    .advantages .adv-line {
        height: 50%;
    }
}

@media screen and (max-width: 576px) {
    .advantages .adv-card-img {
        width: 45px;
        height: 45px;
    }

    .advantages .adv-line {
        right: 0;
        top: auto;
        bottom: -7px;
        height: 1px;
        width: 80%;
        left: 10%;
    }

    .advantages .adv-card:nth-last-child(-n+2) .adv-line {
        display: none;
    }
}

@media screen and (max-width: 450px) {
    .advantages .adv-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages .adv-card-img {
        width: 40px;
        height: 40px;
    }

    .advantages .adv-card:nth-child(even) .adv-line {
        display: none;
    }
}

/* Our Project Desing */

/* Our Project Design */
.our-projects {
    height: auto;
    margin: 60px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.our-projects .project-container {
    width: 100%;
    padding: 20px 24px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.our-projects .projects-title {
    text-align: center;
    margin-bottom: 10px;
}

.our-projects .projects-title h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
}

.our-projects .project-container .project-slider-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.our-projects .project-container .project-slider-section .project-slider {
    display: flex;
    gap: 20px; /* Reduced from 40px to fit 3 items */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.our-projects .project-container .project-slider-section .project-slider::-webkit-scrollbar {
    display: none;
}

.our-projects .project-container .project-slider-section .project-slider .project-card {
    display: flex;
    z-index: 5;
    width: calc((100% - 40px) / 3); /* Makes exactly 3 cards visible */
    height: 380px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.our-projects .project-container .project-slider-section .project-slider .project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.our-projects .project-container .project-slider-section .project-slider .project-card .proj-opacity {
    width: 100%;
    height: 100%;
    background-color: #0000005e;
    padding: 40px 20% 40px 40px;
    gap: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.our-projects .project-container .project-slider-section .project-slider .project-card .proj-opacity h3 {
    font-weight: 600;
    font-size: clamp(16px, 2vw + 0.5rem, 22px);
}

.our-projects .project-container .project-slider-section .project-slider .project-card .proj-opacity p {
    font-size: clamp(14px, 1.5vw + 0.2rem, 18px);
    line-height: 1.5;
}

.our-projects .project-container .project-slider-section .project-slider-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 60px;
    gap: 30px;
}

.our-projects .project-container .project-slider-section .project-slider-buttons .proj-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #e35e5e;
    transition: all 0.2s ease-in-out;
}

.our-projects .project-container .project-slider-section .project-slider-buttons .proj-button:hover {
    background-color: #c82127;
}

.our-projects .project-container .project-slider-section .project-slider-buttons .proj-button i {
    font-weight: 900;
    font-size: 18px;
    color: white;
}

@media screen and (max-width: 1200px) {
    .our-projects .project-container .project-slider-section .project-slider .project-card {
        width: calc((100% - 20px) / 2); /* 2 cards for medium screens */
    }
}

@media screen and (max-width: 768px) {
    .our-projects .project-container .project-slider-section .project-slider .project-card {
        width: 100%; /* 1 card for small screens */
    }
}

@media screen and (max-width: 520px) {
    .our-projects {
        margin: 30px 0 70px 0;
    }

    .our-projects .project-container h2 {
        font-size: 1.5rem;
    }
}

/* Join Us Desing */

.join-us {
    margin: 50px 3%;
    margin-bottom: 50px;
}

.join-us-title {
    text-align: center;
    margin-bottom: 50px;
}

.join-us-title h2 {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
}

/* Flex container */
.join-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

/* Image */
.join-info .profile-img {
    width: 45%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
}

/* Text content */
.join-info .info-text-R {
    width: 45%;
    display: flex;
    flex-direction: column;
    text-align: justify;
    justify-content: center;
}

.join-info .info-text-R h2 {
    font-size: clamp(16px, 2.2vw + 0.3rem, 26px);
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
}

.join-info .info-text-R .position {
    font-size: clamp(12px, 1vw + 0.2rem, 14px);
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.join-info .info-text-R .fullname {
    font-size: clamp(14px, 1.2vw + 0.3rem, 18px);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .join-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .join-info .profile-img,
    .join-info .info-text-R {
        width: 100%;
    }

    .join-info .info-text-R {
        margin-top: 20px;
    }
}

/* Advantages Card Text */
.adv-card p {
    font-size: clamp(12px, 0.9vw + 0.4rem, 13px);
    line-height: 1.4;
    max-width: 100%;
    text-align: center;
}

/* Join Button Text */
.join-button a {
    font-size: clamp(12px, 1vw + 0.3rem, 16px);
}

/* Remove redundant media queries that override font sizes and replace with more efficient responsive rules */
@media screen and (max-width: 370px) {
    .sliderhome .slider .slide .slider-text {
        top: 50%;
    }

    /* Keep the media query for layout changes but remove font-size overrides */
}

@media (min-width: 370px) and (max-width: 680px) {
    .sliderhome .slider .slide .slider-text {
        top: 47%;
    }

    /* Keep the media query for layout changes but remove font-size overrides */
}

/* Improvements for very small screens */
@media screen and (max-width: 360px) {
    :root {
        --heading-large: clamp(1.8rem, 4vw, 2.8rem);
        --heading-medium: clamp(1.2rem, 3vw, 2rem);
    }

    .joinus .join-info .info-text-R {
        padding-top: 30px;
    }
}