.portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
            gap: 30px;
            width: 100%;
        }
        
        .portfolio-item {
            background: #162447;
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            position: relative;
            width: auto;
        }
        
        .portfolio-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }
        
        .item-image {
            height: auto;
            overflow: hidden;
            width: 100%;
        }
        
        .item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .portfolio-item:hover .item-image img {
            transform: scale(1.1);
        }
        
        .item-content {
            padding: 20px;
        }
        
        .item-content h3 {
            color: #4cc9f0;
            margin-bottom: 10px;
            font-size: 1.4rem;
        }
        
        .item-content p {
            color: #a9b7c6;
            line-height: 1.5;
        }
        
        .item-tag {
            display: inline-block;
            background: #4cc9f0;
            color: #1a1a2e;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        /* Popup Styles */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1200;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .popup-overlay.active {
            display: flex;
            opacity: 1;
        }
        
        .popup-content {
            background: #162447;
            width: 90%;
            max-width: 1000px;
            border-radius: 10px;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }
        
        .popup-overlay.active .popup-content {
            transform: scale(1);
        }
        
        .popup-header {
            background: #1f4068;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .popup-header h2 {
            color: #4cc9f0;
            font-size: 1.8rem;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.3s ease;
        }
        
        .close-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .popup-body {
            padding: 30px;
            max-height: 70vh;
            overflow-y: auto;
        }
        


/* Image Carousel Styles */
        .carousel-container {
            position: relative;
            width: 100%;
            height: 500px;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .carousel-slides {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }
        
        .carousel-slide {
            min-width: 100%;
            height: 100%;
        }
        
        .carousel-slide img {
            width: 90%;
            height: 100%;
            object-fit: cover;
        }
        
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 1.2rem;
            transition: background 0.3s ease;
        }
        
        .carousel-btn:hover {
            background: rgba(0, 0, 0, 0.8);
        }
        
        .carousel-btn.prev {
            left: 10px;
        }
        
        .carousel-btn.next {
            right: 10px;
        }
        
        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
            max-width: 90%;
            margin: 0 auto;
        }
        
        .carousel-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(4, 28, 243, 0.5);
            cursor: pointer;
            transition: background 0.3s ease;
            flex-shrink: 0 ;
        }
        
        .carousel-indicator.active {
            background: #0e0d0d;
        }



       /* .popup-image {
            width: 100%;
            height: 300px;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .popup-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        } */
        
        .popup-text {
            margin-bottom: 30px;
        }
        
        .popup-text p {
            margin-bottom: 15px;
            line-height: 1.6;
            color: #a9b7c6;
        }
        
        .details-list {
            list-style: none;
            margin-bottom: 30px;
        }
        
        .details-list li {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #1f4068;
        }
        
        .details-list .label {
            font-weight: bold;
            color: #4cc9f0;
            width: 150px;
            flex-shrink: 0;
        }
        
        .github-btn {
            display: inline-block;
            background: #4b62d6;
            color: white;
            padding: 12px 25px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s ease;
        }
        
        .github-btn:hover {
            background: #3a4fc4;
        }
        
        .social-links {
            display: flex;
            gap: 10px;
        }
        
        .social-links a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            background: #1f4068;
            border-radius: 50%;
            transition: background 0.3s ease;
        }
        
        .social-links a:hover {
            background: #4cc9f0;
        }
        
        .popup-footer {
            padding: 20px;
            border-top: 1px solid #1f4068;
            display: flex;
            justify-content: flex-end;
        }
        
        .cancel-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
        }
        
        .cancel-btn:hover {
            background: #5a6268;
        }
        
        @media (max-width: 768px) {
          .portfolio-grid {
            display: grid;
            grid-template-columns: minmax(300px, 1fr);
            gap: 30px;
            width: 500px;
            }
      
             /* Popup Styles for Tablet */
            .popup-content {
                width: 500px;
                margin: 20px auto;
            }
            
            .popup-header {
                padding: 20px;
            }
            
            .popup-header h2 {
                font-size: 22px;
            }
            
            .popup-body {
                padding: 20px;
            }
            
            .carousel-container {
                height: 350px;
            }
            
            .carousel-slide img {
                object-fit: contain;
            }
            
            .popup-text p {
                font-size: 14px;
            }
            
            .details-list li {
                flex-direction: row;
                align-items: center;
            }
            
            .details-list .label {
                width: 120px;
                font-size: 14px;
                margin-bottom: 0;
            }
            
            .github-btn {
                padding: 10px 18px;
                font-size: 14px;
            }


        }
        

        @media (max-width: 480px) {
            .portfolio-grid {
            display: grid;
            grid-template-columns: minmax(200px, 1fr);
            gap: 30px;
            width: 200px;
            }
        
             /* Popup Styles for Small Mobile */
            .popup-overlay {
                padding: 10px;
            }
            
            .popup-content {
                width: 300px;
                margin: 10px auto;
                max-height: 90vh;
            }
            
            .popup-header {
                padding: 15px;
            }
            
            .popup-header h2 {
                font-size: 18px;
                line-height: 1.3;
            }
            
            .close-btn {
                width: 35px;
                height: 35px;
                font-size: 20px;
            }
            
            .popup-body {
                padding: 15px;
            }
            
            .carousel-container {
                height: 200px;
                margin-bottom: 15px;
            }
            
            .carousel-slide img {
                object-fit: contain;
            }
            
            .carousel-btn {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }
            
            .carousel-btn.prev {
                left: 5px;
            }
            
            .carousel-btn.next {
                right: 5px;
            }
            
            .carousel-indicators {
                gap: 6px;
                padding: 0 5px;
            }
            
            .carousel-indicator {
                width: 8px;
                height: 8px;
            }
            
            .popup-text p {
                font-size: 13px;
                line-height: 1.5;
            }
            
            .details-list {
                margin-bottom: 20px;
            }
            
            .details-list li {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
                padding: 10px 0;
                margin-bottom: 10px;
            }
            
            .details-list .label {
                width: 100%;
                font-size: 13px;
                margin-bottom: 2px;
            }
            
            .details-list .label + span {
                width: 100%;
                font-size: 13px;
            }
            
            .github-btn {
                padding: 8px 15px;
                font-size: 13px;
                width: 100%;
                text-align: center;
                display: block;
            }
            
            .social-links {
                justify-content: flex-start;
                flex-wrap: wrap;
            }
            
            .social-links a {
                width: 32px;
                height: 32px;
                font-size: 12px;
            }
            
            .popup-footer {
                padding: 15px;
            }
            
            .cancel-btn {
                padding: 8px 16px;
                font-size: 13px;
                width: 100%;
            }
        }

        

        /* css for protfolio section */
        
        @media (max-width: 768px) {
            .gallery_zoom {
                display: grid;
                grid-template-columns: minmax(300px, 1fr);
                gap: 30px;
                width: 500px;
            }
            
            .gallery_zoom li {
                background: #162447;
                border-radius: 10px;
                overflow: hidden;
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                width:100%;
            }
            
            .gallery_zoom li:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            }
            
            .list_inner {
                position: relative;
                width: 100%;
                height: 100%;
            }
            
            .list_inner .image {
                width: 100%;
                height: 280px;
                overflow: hidden;
                position: relative;
            }
            
            .list_inner .image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.5s ease;
            }
            
            .list_inner:hover .image img {
                transform: scale(1.1);
            }
            
            .main {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
            }
            
            .overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(26, 26, 46, 0.8);
                opacity: 0;
                transition: opacity 0.3s ease;
            }
            
            .list_inner:hover .overlay {
                opacity: 1;
            }
            
            .svg {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 35px;
                height: 35px;
                opacity: 0;
                transition: opacity 0.3s ease;
                z-index: 1;
            }
            
            .list_inner:hover .svg {
                opacity: 1;
            }
            
            .details {
                padding: 18px;
                text-align: center;
            }
            
            .details span {
                display: block;
                color: #4cc9f0;
                font-size: 13px;
                margin-bottom: 5px;
                line-height: 1.3;
            }
            
            .details h3 {
                color: #fff;
                font-size: 16px;
                margin: 0;
                line-height: 1.3;
            }
            
            .iknow_tm_full_link {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 2;
                text-decoration: none;
            }
        }

        /* === PORTFOLIO ITEM - SMALL MOBILE STYLES (480px and below) === */
        @media (max-width: 480px) {
            .gallery_zoom {
                display: grid;
                grid-template-columns: minmax(200px, 1fr);
                gap: 30px;
                width: 200px;
            }
            
            .gallery_zoom li {
                max-width: 100%;
                margin: 0 auto;
            }
            
            .list_inner .image {
                height: 160px;
            }
            
            .details {
                padding: 15px;
            }
            
            .details span {
                font-size: 12px;
                margin-bottom: 4px;
            }
            
            .details h3 {
                font-size: 15px;
            }
            
            .svg {
                width: 30px;
                height: 30px;
            }
        }