:root {
    --primary: #fd5555;
    --primary-hover: #ff1b1b;
    --secondary: #000000;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    height: 100%;
}

/* -------- title style ------- */
.item-btn {
    display: flex;
    justify-content: center;
}

.item-btn button {
    color: var(--primary);
    font-size: 20px;
    font-weight: 500;
    font-family: cursive;
    background: none;
    border: none;
    margin: 10px 0;
}

.portfolio {
    padding: 70px 20px 50px;
}

.app-card {
    background: black;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.app-card:hover {
    transform: scale(1.05);
}

.app-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.app-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    color: white;
    font-weight: 700;
}

.app-description {
    font-size: 12px;
    color: #bdbdbd;
}

.line-title-container {
    display: flex;
    justify-content: center;
}

.line-title {
    width: 330px;
    font-size: 35px;
    padding-bottom: 25px;
    margin-bottom: 32px;
    font-size: 35px !important;
}

.line-title {
    position: relative;
    display: flex;
    justify-content: center;
    width: 400px;
    font-size: 28px;
    padding-bottom: 20px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 40px;
}

.close {
    font-size: 50px;
    position: absolute;
    right: 10vh;
    top: 0px;
    color: var(--primary);
}

.line-title::before,
.line-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 2px;
}

.line-title::before {
    width: 100%;
    background: #f2f2f2;
}

.line-title::after {
    width: 32px;
    background: var(--primary);
}

@media (min-width: 992px) and (max-width: 1199px) {
    .line-title {
        margin-bottom: 32px;
    }

    .close {
        font-size: 50px;
        right: 2vh;
        top: 5px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .line-title {
        width: 330px;
        font-size: 40px;
        padding-bottom: 25px;
        margin-bottom: 32px;
        font-size: 35px !important;
    }

    .close {
        font-size: 50px;
        right: 2vh;
        top: 5px;
    }
}

@media only screen and (min-width: 601px) and (max-width: 767px) {

    .line-title {
        width: 330px;
        font-size: 36px;
        padding-bottom: 25px;
        margin-bottom: 20px !important;
        font-size: 30px !important;
    }

    .close {
        font-size: 45px;
        top: 5px;
        right: 2vh;
    }
}

@media only screen and (min-width: 500px) and (max-width: 600px) {
    .line-title {
        width: 250px !important;
        padding-bottom: 10px;
        margin-bottom: 20px !important;
        font-size: 25px !important;
    }

    .close {
        font-size: 40px;
        right: 2vh;
        top: 5px;
    }
}

@media only screen and (max-width: 499px) {
    .line-title {
        width: 250px !important;
        padding-bottom: 10px;
        margin-bottom: 10px !important;
        font-size: 25px !important;
    }

    .close {
        font-size: 35px;
        right: 2vh;
        top: 5px;
    }
}

@media only screen and (max-width: 340px) {
    .line-title {
        margin-bottom: 10px !important;
        font-size: 24px !important;
    }

    .close {
        font-size: 30px;
        right: 2vh;
        top: 5px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-hover);
}

/* Make app cards clickable and responsive */
.app-card {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}



/* Responsive grid adjustments */
@media (max-width: 576px) {
    .portfolio {
        padding: 50px 15px 30px;
    }
    
    .app-title {
        font-size: 16px;
        margin-top: 8px;
    }
    
    .app-description {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .app-card video {
        max-height: 150px;
    }
}

@media (max-width: 767px) {
    .portfolio .row > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 768px) {
    .app-card video {
        max-height: 220px;
    }

    .app-description {
        -webkit-line-clamp: 6;
    }
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
        margin: 20px;
    }
    
    .close-modal {
        font-size: 30px;
        top: 5px;
        right: 10px;
    }
    
    .modal-content video {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        max-height: 98%;
        margin: 10px;
    }
    
    .close-modal {
        font-size: 25px;
        top: 3px;
        right: 8px;
    }
    
    .modal-content video {
        max-height: 90vh;
    }
}

/* Ensure proper spacing on mobile */
@media (max-width: 576px) {
    .container.portfolio > .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .container.portfolio > .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .app-card {
        padding: 12px;
    }
    
    .close {
        font-size: 40px;
        right: 15px;
        top: 10px;
    }
    .portfolio {
    padding: 10px 10px 20px;
}
}

/* Extra small devices */
@media (max-width: 340px) {
    .app-card {
        padding: 10px;
    }
    
    .app-title {
        font-size: 14px;
    }
    
    .app-description {
        font-size: 11px;
        -webkit-line-clamp: 6;
    }
    
    .close {
        font-size: 35px;
        right: 10px;
        top: 5px;
    }
}






.preview-wrapper {
  position: fixed;
  top: 130px;
  right: 4px;
  z-index: 10;

}

.preview-wrapper a {
  color: #fff;
  display: block;
  height: 40px;
  position: relative;
  text-align: center;
  line-height: 40px;
  width: 40px;
  margin-bottom: 2px;
  z-index: 1;
  border-radius: 3px;

}

.preview-wrapper a:hover>span {
  visibility: visible;
  right: 41px;
  opacity: 1;
  border-radius: 3px;
}

.preview-wrapper a span {
  line-height: 40px;
  right: 60px;
  position: absolute;
  text-align: center;
  width: 120px;
  visibility: hidden;
  transition-duration: 0.5s;
  z-index: 1;
  opacity: 0;
}


.fixed-facebook,
.fixed-facebook span {
  background-color: var(--primary);
}

.fixed-twitter,
.fixed-twitter span {
  background-color: var(--primary);

}

.fixed-gplus,
.fixed-gplus span {
  background-color: var(--primary);

}

.fixed-linkedin,
.fixed-linkedin span {
  background-color: var(--primary);

}

.fixed-instagrem,
.fixed-instagrem span {
  background-color: var(--primary);

}
.fixed-whatsapp,
.fixed-whatsapp span {
  background-color: var(--primary);

}

.fixed-upwork,
.fixed-upwork span {
  background-color: var(--primary);

}

.fixed-tumblr,
.fixed-tumblr span {
  background-color: var(--primary);

}
@media (max-width: 500px) {

  .preview-wrapper {
    display: none !important;
  }
}





