  /* Reset CSS */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            background-color: #f5f5f5;
            font-family: 'Roboto', sans-serif;
            color: #333;
        }

        /* Container styles */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            text-align: center;
        }

        h1 {
            font-size: 36px;
            margin-bottom: 20px;
            position: relative;
            font-weight: bold;
        }

        h1::after {
            content: "";
            position: absolute;
            width: 120px;
            height: 3px;
            background-color: crimson;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            animation: grow 4s infinite;
        }

        @keyframes grow {
            0% { width: 120px; }
            50% { width: 180px; }
            100% { width: 120px; }
        }

        .top-content {
            background-color: #e0e0e0;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 40px;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .top-content h2 {
            font-size: 16px;
            color: #444;
        }

        .top-content label {
            font-size: 14px;
            color: gray;
            cursor: pointer;
            padding: 5px 15px;
            transition: color 0.3s ease;
        }

        .top-content label:hover {
            color: #ff7f50;
        }

        /* Gallery Grid */
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .pic {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s ease;
        }

        .pic img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .pic:hover img {
            transform: scale(1.1);
        }

        .pic::before {
            content: "Photo Gallery";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 24px;
            font-weight: bold;
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .pic:hover::before {
            opacity: 1;
        }

        .pic::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            top: 0;
            left: 0;
            transition: opacity 0.3s ease;
            opacity: 0;
        }

        .pic:hover::after {
            opacity: 1;
        }

        /* Hide all sections initially, show only selected */
        input[type="radio"] {
            display: none;
        }

        #check1:checked ~ .container .photo-gallery .pic {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        #check2:checked ~ .container .photo-gallery .crop {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        #check3:checked ~ .container .photo-gallery .animals {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        /* Additional selectors for other categories */
        #check4:checked ~ .container .photo-gallery .mech {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        #check5:checked ~ .container .photo-gallery .economics {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        #check6:checked ~ .container .photo-gallery .home {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        #check7:checked ~ .container .photo-gallery .graduation {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        #check8:checked ~ .container .photo-gallery .projects {
            opacity: 1;
            transform: scale(1);
            position: relative;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-content {
                flex-direction: column;
                align-items: flex-start;
            }

            .top-content label {
                margin-bottom: 10px;
            }
        }