/* ===============================
   HOMEPAGE PORTFOLIO SECTION
================================= */

.home-portfolio-section {
    background-color: #20363a; 
    padding: 100px 30px;
    text-align: center;
}

.home-portfolio-container {
    max-width: 950px;
    margin: 0 auto;
}

.home-portfolio-title {
    font-size: 50px;
    font-weight: 700;
    color: #D6C6B8; 
    margin-bottom: 40px;
}

.home-portfolio-text {
    font-size: 25px;
    line-height: 1.5;
    color: #ffffff; 
    margin-bottom: 45px;
}

.home-portfolio-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: #D6C6B8; 
    color: #20363a; 
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
}
.home-portfolio-btn:hover {
    background-color: #ffffff;
    color: #20363a;
    transform: translateY(-3px);
}


.home-portfolio-title {
    opacity: 0;
    transform: translateX(-120px);   
    transition: opacity 1.6s ease, 
                transform 1.6s ease;
}

.home-portfolio-title.show {
    opacity: 1;
    transform: translateX(0);
}

.beige-strip {
    width: 100%;
    height: 60px;
    background-color: #d8c3b5;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

/* ===============================
   PORTFOLIO SECTION
================================= */

.portfolio-section {
    background: #f2e4d6;
    padding: 60px 20px;  
    text-align: center;
    min-height: auto;     
}

.portfolio-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top:-55px;
}

.portfolio-title {
    font-size: 40px;
    font-weight: 700;
    color: #2A1E17;
    margin-bottom: 30px;
    margin-top: 85px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.35s ease;
    margin-bottom:50px;
    
}

.portfolio-title:hover {
    color: #eb0909;
    transform: translateY(-6px);
    text-shadow: 0 8px 20px rgba(85, 37, 15, 0.25);
}

.portfolio-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: #f26522;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.portfolio-title:hover::after {
    width: 70%;
}


.portfolio-text {
    font-size: 22px;
    line-height: 1.9;
    color: #2A1E17;
    margin-bottom: 22px;

    opacity: 0;
    transform: translateY(-40px);  
    transition: all 0.8s ease;
}

.portfolio-text.show {
    opacity: 1;
    transform: translateY(0);   
}

.portfolio-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 30px;
    background: #f26522;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    background: #2A1E17;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .portfolio-title {
        font-size: 32px;
    }

    .portfolio-text {
        font-size: 16px;
    }
}

/* ===============================
   PROJECTS SECTION
================================= */

.projects-section {
    padding: 100px 5%;
    background: #f8f9fc;
}

.projects-title {
    text-align: center;
}

.projects-title h1 {
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Orange underline animation */
.projects-title h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 0;
    height: 3px;
    background-color: #f26522;
    transform: translateX(-50%);
    transition: 0.4s ease;
}

.projects-title h1:hover::after {
    width: 80%;
}

/* ===============================
   PORTFOLIO GRID
================================= */

.portfolio-wrapper {
    width: 100%;
}

.portfolio-page {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-page.active {
    display: grid;
}

/* ===============================
   PROJECT CARD
================================= */

.project-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.01);
}

/* Overlay Effect */
.project-card {
    position: relative; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 260px; 
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}

.overlay span {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-name {
    padding: 15px;
    font-size: 17px;
    font-weight: 600;
    color: #2A1E17;
    text-align: center;
}

/* ===============================
   PAGINATION
================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination button {
    padding: 10px 25px;
    background: #f26522;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.pagination button:hover {
    background: #2A1E17;
}

/* ===============================
   MODAL – CLEAN BLACK STYLE
================================= */

/* Pure Black Backdrop */
.modal-backdrop.show {
    background-color: #000 !important;
    opacity: 0.9 !important;
}

/* Modal Dialog */
.modal-dialog {
    max-width: 700px;
    margin-top: 80px;
}

/* Remove default white box */
.modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
}

.modal img#modalImage {
    width: 100% !important;
    height: 370px !important;
    object-fit: cover !important;
}

/* Card Design */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Title */
.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

/* List Group */
.list-group-item {
    font-size: 19px;
    padding: 14px 25px;
    border-left: none;
    border-right: none;
    border-color: #eee;
}

/* Strong Labels */
.list-group-item strong {
    color: #f26522;   
    font-weight: 600;
}

/* Hover Effect */
.list-group-item:hover {
    background: #f9f9f9;
}
/* Modal Body */
.modal-body {
    padding: 0;
    background: #ffffff;
    position: relative;
}

/* Image */
#modalImage {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* =================================
   SIMPLE CLOSE BUTTON (NO CIRCLE)
================================= */
.custom-close {
    position: absolute;
    top: -32px;      
    right: -40px;   
    background: transparent;
    color: #fff;
    border: none;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    cursor: pointer;
    z-index: 9999;   
    transition: 0.2s;
    line-height: 1.8;
}

.custom-close:hover {
    opacity: 0.7;
}

/* =================================
   SIMPLE SIDE ARROWS (NO CIRCLE)
================================= */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    font-size: 45px;
    cursor: pointer;
    z-index: 20;
    transition: 0.2s;
}

/* Left */
.left-arrow {
    left: -50px;
}

/* Right */
.right-arrow {
    right: -50px;
}

.nav-arrow:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }

    .custom-close {
        top: 10px;
        right: 10px;
        color: #000;
    }
}

/* =================================
   MOBILE RESPONSIVE FIX
================================= */

@media (max-width: 992px) {

    /* Sections Padding Reduce */
    .home-portfolio-section,
    .projects-section {
        padding: 70px 20px;
    }

    .portfolio-section {
        padding: 40px 20px;
    }

    /* Titles Resize */
    .home-portfolio-title,
    .projects-title h1 {
        font-size: 35px;
    }

    .portfolio-title {
        font-size: 32px;
        margin-top: 50px;
    }

    /* Paragraph Resize */
    .home-portfolio-text,
    .portfolio-text {
        font-size: 22px;
        line-height: 1.7;
    }

    /* Buttons */
    .home-portfolio-btn,
    .portfolio-btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    /* ===== GRID RESPONSIVE ===== */

    .portfolio-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .project-card img {
        height: 220px;
    }

    .overlay {
        height: 220px;
    }
}


/* Extra Small Devices (Mobile) */

@media (max-width: 576px) {

    /* Make Grid Single Column */
    .portfolio-page {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 200px;
    }

    .overlay {
        height: 200px;
    }

    .project-name {
        font-size: 15px;
    }

    /* Pagination Stack */
    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination button {
        width: 100%;
    }

    /* Modal Fix */
    .modal-dialog {
        margin: 40px 10px;
    }

    #modalImage {
        height: 220px;
    }

    /* Arrows inside screen */
    .left-arrow {
        left: 10px;
        font-size: 30px;
    }

    .right-arrow {
        right: 10px;
        font-size: 30px;
    }

    .custom-close {
        top: 5px;
        right: 10px;
        font-size: 35px;
    }

}

@media (max-width: 768px) {
    .portfolio-section {
        min-height: auto;
    }
}