 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Work Sans', sans-serif;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  margin-top: 80px !important;
  background-color: transparent;
}

body::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #9f9f9f;
}

.fullscreen-modal.active ~ * {
    overflow: hidden !important;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.btn {
    text-align: center;
    padding: 12px 28px;
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 46px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: scale(0.95);
    box-shadow: none;
}

.project-card .img-container {
    padding: 20px;
    height: 340px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.project-card .img-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    gap: 40px;
}

.project-card .img-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.heading-section {
    padding-top: 70px;
    width: 100%;
    height: fit-content;
    max-width: 840px;
    margin: 50px auto 0;
    text-align: center;
}

.heading-section .title {
    position: relative;
    display: inline-block;
    font-size: 40px;
    color: #7D9FEF;
    font-family: 'Chewy', sans-serif;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.2);
    -webkit-text-stroke: 0.1px #4849E8;
}

.heading-section .description {
    margin-top: 30px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
    text-align: center;
    color: #7D9FEF;
}

.projects-section {
    margin: 48px 0 340px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: fit-content;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    border-radius: 12px;
    padding: 0px 20px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 2;
    min-height: 362px;
    width: 500px;
    background-color: rgba(125,159,239, 0.6);
    backdrop-filter: blur(10px);
}

.project-card::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid #4849E8;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card:hover::after {
    opacity: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card .slider-controls {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.project-card .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card .slider-dot.active {
    background: #4849E8;
    transform: scale(1.2);
}

.project-card .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card .slider-nav img {
    width: 18px;
}

.project-card .img-container:hover .slider-nav {
    opacity: 1;
}

.project-card .slider-nav.prev {
    left: 2px;
    transform: rotate(90deg);
}

.project-card .slider-nav.next {
    right: 2px;
    transform: rotate(-90deg);
}

.project-card .slider-nav.prev:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg) scale(1.1);
}

.project-card .slider-nav.next:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(-90deg) scale(1.1);
}

.project-card h3 {
    font-size: 18px;
    color: #4849E8;
    margin: 15px 0 20px;
    text-align: center;
}

.project-card p {
    font-size: 16px;
    font-weight: 600;
    color: #FDFDFD;
    padding: 0 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    text-align: justify;
}

[data-lang-key] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-change {
    opacity: 0;
    transform: translateY(10px);
}

.lang-change-active {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    padding-bottom: 60px;
}

.modal-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    gap: 200px;
    max-width: 90vw;
}

.modal-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #4849E8;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.3);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4849E8;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-nav.prev {
    left: 0px;
    transform: rotate(90deg);
    padding-top: 4px;
}

.modal-nav.next {
    right: 0px;
    transform: rotate(-90deg);
    padding-top: 4px;
}

.modal-nav.prev:hover {
    transform: rotate(90deg) scale(1.1);
    opacity: 0.8;
}

.modal-nav.next:hover {
    transform: rotate(-90deg)scale(1.1);
    opacity: 0.8;
}

.modal-nav img {
    width: 30px;
    height: 30px;
}

.modal-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 1001;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-dot.active {
    background: #4849E8;
    transform: scale(1.2);
}

@media (max-width: 1240px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .modal-nav {
        top: unset;
        transform: unset;
        bottom: 0px;
    }

    .project-card .slider-nav {
        opacity: 1;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover::after {
        display: none;
    }

    .heading-section .title {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }
}

@media (max-width: 992px) {
    .projects-section {
        margin-bottom: 240px;
    }

    .project-card {
        max-width: 90vw;
    }
}

@media (max-width: 767px) {
    .projects-section {
        margin-bottom: 200px;
    }
    
    .heading-section .title {
        font-size: 32px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
    }
    
    .modal-nav {
        bottom: 8px;
        z-index: 10;
    }
    
    .modal-nav img {
        width: 20px;
        height: 20px;
    }
}