/* ========================================
   COLECOVISIONADAM.COM - software STYLESHEET
   Version: 3.0 Production
   Last Updated: 9/10/2025
   ======================================== */

/* ========================================
   BASE STYLES & RESETS
   ======================================== */
* {
  box-sizing: border-box;
}


  body {
            font-family: Arial, Helvetica, sans-serif;
            background-color: #000000;
            margin: 0;
            padding: 0;
            color: #ffffff;
        }
        
        .container {
            width: 95%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .software-header {
            text-align: center;
            margin-bottom: 30px;
            color: #FFFF00;
        }
        
        .software-header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .software-header .publisher {
            color: #2154a6;
            font-weight: bold;
            font-size: 1.4em;
            text-transform: uppercase;
        }

        /* Modern Software Archive Layout - Complete CSS */
        .software-archive-layout {
            width: 100%;
            background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
            border: 3px solid #cc3300;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 
                0 15px 35px rgba(0, 0, 0, 0.7),
                inset 0 2px 0 rgba(255, 255, 255, 0.1),
                0 0 0 1px rgba(204, 51, 0, 0.3);
            margin: 30px 0;
            position: relative;
        }

        /* Animated border glow */
        .software-archive-layout::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #cc3300, #ff6600, #ffff00, #00ff00, #0099ff, #6600cc, #cc3300);
            background-size: 400% 400%;
            border-radius: 22px;
            z-index: -1;
            animation: borderGlow 8s ease infinite;
            opacity: 0.6;
        }

        @keyframes borderGlow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* New Flexible Layout - Side by Side */
        .software-content-wrapper {
            display: flex;
            min-height: 600px;
        }

        /* Left Section - Description, Box Art, and Media */
        .left-section {
            flex: 1;
            padding: 25px;
            background: linear-gradient(145deg, 
                rgba(26, 26, 26, 0.95) 0%, 
                rgba(42, 42, 42, 0.9) 50%, 
                rgba(26, 26, 26, 0.95) 100%);
            border-right: 3px solid rgba(204, 51, 0, 0.4);
            position: relative;
            overflow: hidden;
        }

        .left-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 0, 0.4) 25%, 
                rgba(255, 255, 0, 0.8) 50%, 
                rgba(255, 255, 0, 0.4) 75%, 
                transparent 100%);
        }

        /* Right Section - Screenshots Gallery */
        .right-section {
            flex: 0 0 45%;
            background: linear-gradient(145deg, 
                rgba(15, 15, 15, 0.95) 0%, 
                rgba(30, 30, 30, 0.9) 50%, 
                rgba(15, 15, 15, 0.95) 100%);
            position: relative;
            overflow: hidden;
        }

        .right-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(33, 84, 166, 0.4) 25%, 
                rgba(33, 84, 166, 0.8) 50%, 
                rgba(33, 84, 166, 0.4) 75%, 
                transparent 100%);
        }

        /* Enhanced Software Description Card */
        .software-description-card {
            background: linear-gradient(135deg, 
                #000000 0%, 
                #1a1a1a 30%, 
                #2a2a2a 50%, 
                #1a1a1a 70%,
                #000000 100%);
            border: 2px solid #555;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            position: relative;
            box-shadow: 
                0 8px 25px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .software-description-card:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 12px 35px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .software-description-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(33, 84, 166, 0.6) 50%, 
                transparent 100%);
        }

        /* Enhanced Title */
        .software-description-title {
            background: linear-gradient(135deg, 
                #8C8484 0%, 
                #B8A8A8 25%, 
                #C4B4B4 50%, 
                #B8A8A8 75%, 
                #8C8484 100%);
            color: #000000;
            font-weight: bold;
            padding: 18px 25px;
            text-align: center;
            margin: -25px -25px 25px -25px;
            border-radius: 13px 13px 0 0;
            font-size: 17px;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        .software-description-title::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, 
                transparent 40%, 
                rgba(255, 255, 255, 0.1) 50%, 
                transparent 60%);
            transform: rotate(30deg);
            transition: all 0.6s ease;
            opacity: 0;
        }

        .software-description-title:hover::before {
            opacity: 1;
            animation: shimmer 1.5s ease-in-out;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) rotate(30deg); }
            100% { transform: translateX(100%) rotate(30deg); }
        }

        /* Enhanced Package Gallery */
        .package-gallery {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .package-image-container {
            position: relative;
            display: inline-block;
            transition: all 0.4s ease;
        }

        .package-image-container:hover {
            transform: translateY(-5px) scale(1.02);
        }

        .package-image {
            max-width: 270px;
            max-height: 337px;
            border: 3px solid #2154a6;
            border-radius: 12px;
            transition: all 0.4s ease;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }

        .package-image:hover {
            border-color: #FFFF00;
            box-shadow: 
                0 8px 25px rgba(255, 255, 0, 0.4),
                0 0 20px rgba(255, 255, 0, 0.2);
        }

        .image-category-label {
            position: absolute;
            bottom: 2px;
            left: 2px;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 1px 4px;
            border-radius: 2px;
            font-size: 8px;
            font-weight: bold;
            text-transform: uppercase;
            pointer-events: none;
        }

        /* Enhanced Additional Box Images Card */
        .additional-box-images-card {
            background: linear-gradient(135deg, 
                #000000 0%, 
                #1a1a1a 50%, 
                #000000 100%);
            border: 2px solid #555;
            border-radius: 15px;
            padding: 20px;
            position: relative;
            box-shadow: 
                0 5px 15px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .additional-box-images-title {
            background: linear-gradient(135deg, 
                #9b59b6 0%, 
                #8e44ad 30%, 
                #9b59b6 70%, 
                #7d3c98 100%);
            color: #FFFFFF;
            font-weight: bold;
            padding: 15px 20px;
            text-align: center;
            margin: -20px -20px 20px -20px;
            border-radius: 13px 13px 0 0;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            position: relative;
            overflow: hidden;
        }

        .additional-box-images-title::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%);
            animation: slideGlow 3s ease-in-out infinite;
        }

        .additional-box-gallery {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            justify-items: center;
        }

        .additional-box-image {
            max-width: 100%;
            max-height: 120px;
            border: 1px solid #2154a6;
            border-radius: 4px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .additional-box-image:hover {
            transform: scale(1.1);
            border-color: #FFFF00;
            box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
        }

        .software-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 15px 0;
            font-size: 13px;
        }

        .info-item {
            display: flex;
            flex-direction: column;
        }

        .info-label {
            color: #2154a6;
            font-weight: bold;
            font-size: 11px;
            text-transform: uppercase;
            margin-bottom: 2px;
        }

        .info-value {
            color: #FFFFFF;
        }

        .software-description-text {
            font-size: 12px;
            line-height: 1.5;
            color: #FFFFFF;
            margin-top: 15px;
            text-align: justify;
        }

        .media-type-indicators {
            display: flex;
            gap: 4px;
            justify-content: flex-start;
            margin-top: 8px;
        }

        .media-indicator {
            padding: 3px 6px;
            border-radius: 3px;
            font-size: 9px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .indicator-ddp { background-color: #d35400; color: white; }
        .indicator-disk { background-color: #2980b9; color: white; }
        .indicator-cart { background-color: #27ae60; color: white; }
        .indicator-cass { background-color: #8e44ad; color: white; }

        /* Enhanced Media & Downloads Section */
        .media-downloads-section {
            background: linear-gradient(135deg, 
                #1a1a1a 0%, 
                #2a2a2a 50%, 
                #1a1a1a 100%);
            border: 2px solid #555;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            position: relative;

            overflow: hidden;
        }

        .media-downloads-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(33, 84, 166, 0.5) 50%, 
                transparent 100%);
        }

        /* New section title styling matching additional-box-images-title */
        .section-title-styled {
            background: linear-gradient(135deg, 
                #2154a6 0%, 
                #2968c4 30%, 
                #2154a6 70%, 
                #1a4088 100%);
            color: #FFFFFF;
            font-weight: bold;
            padding: 15px 20px;
            text-align: center;
            margin: 0 0 20px 0;
            border-radius: 8px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            position: relative;
            overflow: hidden;
        }

        /* Media Assets Section */
        .media-assets-section {
            background-color: #2a2a2a;
            border: 1px solid #555;
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 15px;
        }

        .media-assets-title {
            background: linear-gradient(to bottom, #e67e22, #d35400);
            color: #FFFFFF;
            font-weight: bold;
            text-align: center;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 12px;
            margin: -10px -10px 10px -10px;
            border-radius: 6px 6px 0 0;
        }

        /* Manual Assets Grid - Fixed to handle 2-4 items properly */
        .manual-assets-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            max-width: 100%;
            /* Remove fixed rows - let it expand naturally */
        }

        /* UPDATED: Media Assets Grid - Now using secondary assets grid for consistency */
        .media-assets-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .media-asset-item {
            position: relative;
            background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.8) 0%, 
                rgba(20, 20, 20, 0.9) 50%, 
                rgba(0, 0, 0, 0.8) 100%);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
            border: 2px solid transparent;
            height: 164px;
        }

        .media-asset-item:hover {
            transform: translateY(-5px) scale(1.02);
            border-color: #FFFF00;
            box-shadow: 
                0 10px 25px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 255, 0, 0.3);
        }

        .media-asset-image {
            width: 100%;
            height: 164px;
            max-height: 164px;
            object-fit: contain;
            object-position: center;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: rgba(0, 0, 0, 0.2);
        }

        .media-asset-item:hover .media-asset-image {
            transform: scale(1.05);
        }

        .media-asset-image:hover {
            transform: scale(1.1);
            border-color: #FFFF00;
            box-shadow: 0 5px 15px rgba(255, 255, 0, 0.4);
        }

/* Center single items in media assets grid */
.media-assets-grid:has(:only-child) {
    justify-content: center;
}

.media-assets-grid:has(:only-child) .secondary-asset-item {
    max-width: 400px;
    width: 100%;
}

/* Alternative if :has() selector isn't supported */
.media-assets-grid.single-item {
    justify-content: center;
}

.media-assets-grid.single-item .secondary-asset-item {
    max-width: 400px;
    width: 100%;
}





        /* ORIGINAL Disk/DDP Download Sections - Matching the Image */
        .disk-ddp-section {
            background-color: #2a2a2a;
            border: 1px solid #555;
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 15px;
        }
        
        .disk-ddp-title {
            background: linear-gradient(to bottom, #e74c3c, #c0392b);
            color: #FFFFFF;
            font-weight: bold;
            text-align: center;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 12px;
            margin: -10px -10px 10px -10px;
            border-radius: 6px 6px 0 0;
            position: relative;
            overflow: hidden;
        }

        .disk-ddp-title::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%);
            animation: slideGlow 3s ease-in-out infinite;
        }
        
        .disk-ddp-title img {
            display: none; /* Hide icons to match original */
        }

        /* Original Download Link Styling for Disk/DDP */
        .disk-ddp-section .download-links-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .disk-ddp-section .download-link-item {
            margin-bottom: 3px;
        }

        .disk-ddp-section .download-link {
            color: #FFFF00 !important;
            text-decoration: none;
            font-size: 11px;
            display: block;
            padding: 8px 12px;
            background-color: rgba(33, 84, 166, 0.2);
            border: 1px solid rgba(33, 84, 166, 0.4);
            border-radius: 3px;
            transition: all 0.3s ease;
            text-align: center;
        }

        .disk-ddp-section .download-link:hover {
            background-color: #2154a6 !important;
            color: #FFFFFF !important;
            transform: translateX(3px);
        }

        .disk-ddp-section .download-link:visited {
            color: #FFFF00 !important;
        }

        .disk-ddp-section .download-link:active {
            color: #FFFF00 !important;
        }

        /* FIXED: Separate CSS for General Download Links Section - BLUE THEME MAINTAINED */
        .general-download-links-section {
            background-color: #2a2a2a;
            border: 1px solid #555;
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 15px;
        }

        .general-download-links-title {
            background: linear-gradient(to bottom, #f39c12, #e67e22);
            color: #FFFFFF;
            font-weight: bold;
            text-align: center;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 12px;
            margin: -10px -10px 10px -10px;
            border-radius: 6px 6px 0 0;
            position: relative;
            overflow: hidden;
        }

        .general-download-links-title::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%);
            animation: slideGlow 3s ease-in-out infinite;
        }

        .general-download-links-section .download-links-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .general-download-links-section .download-link-item {
            margin-bottom: 3px;
        }

        .general-download-links-section .download-link {
            color: #FFFF00 !important;
            text-decoration: none;
            font-size: 11px;
            display: block;
            padding: 8px 12px;
            background-color: rgba(33, 84, 166, 0.2);
            border: 1px solid rgba(33, 84, 166, 0.4);
            border-radius: 3px;
            transition: all 0.3s ease;
            text-align: center;
        }

        .general-download-links-section .download-link:hover {
            background-color: #2154a6 !important;
            color: #FFFFFF !important;
            transform: translateX(3px);
        }

        .general-download-links-section .download-link:visited {
            color: #FFFF00 !important;
        }

        .general-download-links-section .download-link:active {
            color: #FFFF00 !important;
        }

        /* Screenshots Card - New Design */
        .screenshots-card {
            background: linear-gradient(135deg, 
                #000000 0%, 
                #1a1a1a 50%, 
                #000000 100%);
            border: 2px solid #555;
            border-radius: 15px;
            padding: 20px;
            margin: 25px;
            position: relative;
            box-shadow: 
                0 5px 15px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .screenshots-card-title {
            background: linear-gradient(135deg, 
                #2154a6 0%, 
                #2968c4 30%, 
                #2154a6 70%, 
                #1a4088 100%);
            color: #FFFFFF;
            font-weight: bold;
            padding: 15px 20px;
            text-align: center;
            margin: -20px -20px 20px -20px;
            border-radius: 13px 13px 0 0;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        .screenshots-card-title::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%);
            animation: slideGlow 3s ease-in-out infinite;
        }

        @keyframes slideGlow {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .screenshots-content {
            max-height: 500px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 10px;
        }

        /* Custom Scrollbar for Screenshots Content */
        .screenshots-content::-webkit-scrollbar {
            width: 8px;
        }

        .screenshots-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }

        .screenshots-content::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #2154a6, #1a4088);
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .screenshots-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #FFFF00, #FFD700);
        }

        /* Screenshots Grid - Reverted to original dimensions */
        .screenshots-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        /* FIXED: Secondary Assets Grid - Consistent sizing */
        .secondary-assets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .secondary-asset-item {
            position: relative;
            background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.8) 0%, 
                rgba(20, 20, 20, 0.9) 50%, 
                rgba(0, 0, 0, 0.8) 100%);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
            border: 2px solid transparent;
            /* FIXED: Set consistent height for all secondary asset containers */
            height: 180px;
        }

        .secondary-asset-item:hover {
            transform: translateY(-5px) scale(1.02);
            border-color: #FFFF00;
            box-shadow: 
                0 10px 25px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 255, 0, 0.3);
        }

        .secondary-asset-image {
            width: 100%;
            /* FIXED: Set max-height and ensure proper fitting */
            height: 180px;
            max-height: 180px;
            object-fit: cover;
            object-position: center;
            transition: all 0.4s ease;
            border-radius: 8px;
        }

        .secondary-asset-item:hover .secondary-asset-image {
            transform: scale(1.05);
        }

        /* SPECIAL: For cartridge images that might be very wide, use contain instead of cover */
        .secondary-asset-item[data-category="cartridge"] .secondary-asset-image {
            object-fit: contain;
            background-color: rgba(0, 0, 0, 0.2);
        }

        /* SPECIAL: For manual/documentation images, use contain to show full image */
        .secondary-asset-item[data-category="manual"] .secondary-asset-image {
            object-fit: contain;
            background-color: rgba(255, 255, 255, 0.05);
            height: 180px;
            max-height: 180px;
        }

        /* SPECIAL: For general media images, use contain to show full image */
        .secondary-asset-item[data-category="media"] .secondary-asset-image {
            object-fit: contain;
            background-color: rgba(0, 0, 0, 0.2);
            height: 180px;
            max-height: 180px;
        }

        .screenshot-item {
            position: relative;
            background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.8) 0%, 
                rgba(20, 20, 20, 0.9) 50%, 
                rgba(0, 0, 0, 0.8) 100%);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
            border: 2px solid transparent;
            /* CONSISTENT: Same height as secondary assets */
            height: 180px;
        }

        .screenshot-item:hover {
            transform: translateY(-5px) scale(1.02);
            border-color: #FFFF00;
            box-shadow: 
                0 10px 25px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 255, 0, 0.3);
        }

        .screenshot-image {
            width: 100%;
            /* FIXED: Consistent height with other images */
            height: 180px;
            max-height: 180px;
            object-fit: cover;
            object-position: center;
            transition: all 0.4s ease;
            border-radius: 8px;
        }

        .screenshot-item:hover .screenshot-image {
            transform: scale(1.05);
        }

        .screenshot-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
            color: #FFFFFF;
            padding: 15px;
            font-size: 12px;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .screenshot-item:hover .screenshot-overlay,
        .secondary-asset-item:hover .screenshot-overlay {
            opacity: 1;
        }

        /* No Content State */
        .no-content {
            color: #FF6B6B;
            font-style: italic;
            font-size: 14px;
            padding: 60px 20px;
            text-align: center;
            background: linear-gradient(135deg, 
                rgba(255, 107, 107, 0.1) 0%, 
                rgba(255, 107, 107, 0.05) 100%);
            border-radius: 10px;
            border: 1px dashed rgba(255, 107, 107, 0.3);
        }

        .back-link {
            margin-top: 30px;
            text-align: center;
        }
        
        .back-link a {
            color: #2154a6;
            text-decoration: none;
            font-weight: bold;
            font-size: 18px;
        }
        
        .back-link a:hover {
            text-decoration: underline;
        }
        
        /* Modal for enlarged images */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
        }
        
        .modal-content {
            margin: auto;
            display: block;
            max-width: 95%;
            max-height: 90%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 600px;
            min-height: 450px;
            object-fit: contain;
            border: 3px solid #2154a6;
            border-radius: 5px;
            box-shadow: 0 0 20px rgba(33, 84, 166, 0.5);
        }
        
        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
            background-color: rgba(0,0,0,0.5);
            padding: 5px 10px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        
        .close:hover {
            color: #FFFF00;
            background-color: rgba(0,0,0,0.8);
            transform: scale(1.1);
        }
        
        /* Color bar */
        .color-bar {
            width: 100%;
            height: 33px;
            background: linear-gradient(to right, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
            margin: 20px 0;
            border-radius: 4px;
        }
        
        /* Responsive Design */
        @media screen and (max-width: 1200px) {
            .software-content-wrapper {
                flex-direction: column;
            }
            
            .left-section {
                border-right: none;
                border-bottom: 3px solid rgba(204, 51, 0, 0.4);
            }
            
            .right-section {
                flex: 1;
                min-height: 400px;
            }
            
            .screenshots-grid,
            .secondary-assets-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                gap: 12px;
            }

            .secondary-asset-item,
            .screenshot-item {
                height: 160px;
            }
            
            .secondary-asset-image,
            .screenshot-image {
                height: 160px;
                max-height: 160px;
            }

            .additional-box-gallery { 
                grid-template-columns: repeat(3, 1fr); 
            }
        }

        @media screen and (max-width: 768px) {
            .software-archive-layout {
                border-radius: 15px;
                margin: 15px 0;
            }
            
            .left-section,
            .right-section {
                padding: 20px;
            }
            
            .package-gallery {
                flex-direction: column;
                align-items: center;
            }
            
            .screenshots-grid,
            .secondary-assets-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .secondary-asset-item,
            .screenshot-item {
                height: 200px;
            }
            
            .secondary-asset-image,
            .screenshot-image {
                height: 200px;
                max-height: 200px;
            }
            
            .media-assets-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                gap: 12px;
            }

            .additional-box-gallery { 
                grid-template-columns: repeat(2, 1fr); 
            }
            
            .modal-content {
                min-width: 95vw;
                min-height: 50vh;
                max-width: 98vw;
                max-height: 80vh;
            }
        }

/* ========================================
   END OF STYLESHEET
   ======================================== */