/* ============================================
           BANNER SECTION STYLES
        ============================================ */

.banner-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.banner-content {
    text-align: left;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.hero-tag {
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.banner-description {
    font-family: var(--mulish);
    font-size: var(--text-lg);
    line-height: 28px;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.banner-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* Responsive */
@media (max-width: 991px) {
    .banner-section {
        min-height: 50vh;
    }

    .banner-title {
        font-size: var(--font-size-44);
        line-height: 52px;
    }
}

@media (max-width: 768px) {
    .banner-section {
        min-height: 45vh;
        padding: 6rem 0rem 3rem;
    }

    .banner-title {
        font-size: var(--font-size-36);
        line-height: 44px;
    }

    .banner-description {
        font-size: var(--font-size-16);
    }

    .banner-buttons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-section {
        min-height: 40vh;
    }

    .banner-title {
        font-size: var(--font-size-30);
        line-height: 38px;
    }

    .banner-tag {
        font-size: var(--font-size-14);
        padding: 0.4rem 1.2rem;
    }
}


.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(21, 105, 253, 0.2);
    border-left: 3px solid var(--primary-color);
    color: var(--text-white);
    font-size: var(--font-size-16);
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-54);
    font-weight: var(--heading-xl-weight);
    line-height: 62px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-family: var(--mulish);
    font-size: var(--text-lg);
    line-height: 28px;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ============================================
   PORTFOLIO CARD STYLES
============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


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

.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-item:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-item:nth-child(6) {
    animation-delay: 0.6s;
}

.portfolio-item:nth-child(7) {
    animation-delay: 0.7s;
}

.portfolio-item:nth-child(8) {
    animation-delay: 0.8s;
}

.portfolio-item:nth-child(9) {
    animation-delay: 0.9s;
}

.portfolio-item.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Card */
.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Portfolio Image */
.portfolio-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Hover Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(21, 105, 253, 0.4), rgba(11, 60, 93, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
}

.hover-icon {
    width: 50px;
    height: 50px;
    background: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hover-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hover-icon i {
    font-size: 20px;
    color: var(--secondary-color);
}

.hover-icon:hover i {
    color: var(--primary-color);
}

/* Portfolio Content */
.portfolio-content {
    padding: 30px 25px;
    margin-top: -30px;
    border-radius: 12px;
    background: white;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(21, 105, 253, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-title {
    color: var(--primary-color);
}

.portfolio-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.portfolio-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-badge {
    padding: 6px 12px;
    background: #F0F4F8;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .tech-badge {
    background: var(--secondary-color);
    color: var(--text-white);
}



/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--text-white);
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 20px;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 50px 40px;
}

.modal-info .heading-md {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.modal-info .portfolio-category {
    margin-bottom: 20px;
}

.modal-info .text-lg {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.modal-details {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-item p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* Scrollbar Styles */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #F0F4F8;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

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

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 300px;
    }

    .modal-info {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .portfolio-image {
        height: 220px;
    }

    .portfolio-content {
        padding: 25px 20px;
    }

    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .modal-info {
        padding: 25px 20px;
    }

    .modal-details {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-image {
        height: 200px;
    }

    .btn-load-more {
        padding: 14px 30px;
        font-size: 14px;
    }
}

.modal-actions .btn {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.modal-actions .btn:hover {
    color: var(--text-white) !important;
}