@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        /* --- Navbar & Sidebar Styles --- */
        .navbar{
            width: 100%;
            height: 10%;
            display:flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            padding-bottom: 20px;
            background: #0808086b;
            backdrop-filter: blur(10px);
            position: fixed;
            z-index: 999;
            transform: translateY(-40px);
        }
        .hamburger{
            list-style: none;
        }
        .hamburger a{
            text-decoration: none;
            color: #fff;
            display: none;
        }
        .ri-menu-3-line::before{
            font-size: x-large;
        }
        .closebtn{
            margin-left: 20px;
            list-style: none;
            margin-bottom: 20px;
            font-size: 30px;
        }
        .closebtn a{
            text-decoration: none;
            color: #fff;
        }
        .comb{
            display: flex;
            gap: 20px;
        }
        .sidebar{
            width: 100%;
            height: 5%;
            display:flex;
            align-items: center;
            padding-top: 10px;
            padding-bottom: 20px;
            position: fixed;
            top:0;
            right: 0;
            height: 100vh;
            width: 250px;
            z-index: 999;
            background-color: #000000a2;
            box-shadow: -10px 0 10px #5678c5;
            display: none;
            flex-direction: column;
            align-items: flex-start;
            backdrop-filter: blur(10px);
        }
        .sidebar ul{
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .sidebar .logo a{
            margin: 20px;
            font-size: 24px;
        }
        .sidebar .logo{
            margin-bottom: 20px;
        }
        .sidebar.active {
          display: flex;
        }
        .navbar ul{
            list-style: none;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 32px;
        }
        .sidebar ul{
            list-style: none;
            display: flex;
            justify-content: center;
            margin-left: 20px;
            gap: 32px;
        }
        .navbar ul li a,.logo a{
            text-decoration: none;
            color: #fff;
            font-family: 'Roboto';
            font-size: 0.9rem;
            cursor: pointer;
        }
        .sidebar ul li a,.logo a{
            align-items: flex-start;
            text-decoration: none;
            color: #fff;
            font-family: 'Roboto';
            font-size: 16px;
            cursor: pointer;
        }
        .ri-close-line:before{
            font-size: 20px;
        }
        .navbar ul li a:hover{
            color:  #5b78bb;
        }
        .sidebar ul li a:hover{
            color:  #5b78bb;
        }
        .logo a{
            margin-left: 60px;
            font-size: 2rem;
            font-family: "Russo One", sans-serif;
            word-spacing: 5px;
        }
        .signup:hover{
            background-color: #5b78bb;
            transform: scale(1.02);
            transition: transform 0.3s ease-in-out;
        }
        .signup{
            margin-right: 60px;
            background-color: transparent;
            color: #fff;
            padding: 5px 15px;
            border: 1px solid #fff;
            font-family: 'Roboto';
            cursor: pointer;
        }
        /* --- End Navbar & Sidebar Styles --- */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(rgba(0,0,0,0.6)),url('https://img.freepik.com/premium-photo/man-looking-through-telescope-milky-way_445983-7688.jpg') bottom center/cover no-repeat fixed;
            color: white;
            min-height: 100vh;
            overflow-x: hidden;
        }

        @keyframes bgMove {
            0% { background-position: 0% 0%; }
            100% { background-position: 100% 100%; }
        }

        .header {
            text-align: center;
            padding: 2rem 1rem;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            margin-bottom: 2rem;
        }

        .header h1 {
            font-size: 3rem;
            background: linear-gradient(45deg, #fff, #4ecdc4, #45b7d1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.3)); }
            to { filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.5)); }
        }

        .search-container {
            transform: translateY(50px);
            max-width: 600px;
            margin: 2.5rem auto 3rem;
            padding: 0 1rem;
        }

        .search-box {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        input[type="text"] {
            flex: 1;
            padding: 10px;
            border: 2px solid #ffffff52;
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.1rem;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        input[type="text"]:focus {
            outline: none;
            border-color: rgb(109, 140, 209);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }

        input[type="text"]::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }
        .search-btn{
            padding: 0px 20px;
            background: linear-gradient(45deg, rgb(67, 94, 151), rgba(255, 255, 255, 0.733));
            border: none;
            border-radius: 25px;
            color: white;
            font-size: 0.85rem;
            font-weight: 600;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-left: 1rem;
        }
        .quick-search{
            margin-bottom: 24px;
        }
        .quick-btn, .next-btn, .prev-btn {
            padding: 0.7rem 0.9rem;
            background: linear-gradient(45deg, rgb(67, 94, 151), rgba(255, 255, 255, 0.733));
            border: none;
            border-radius: 25px;
            color: white;
            font-size: 0.85rem;
            font-weight: 500;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-left: 1rem;
        }

        .search-btn:hover, .quick-btn:hover, .next-btn:hover, .prev-btn:hover {
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.733),rgb(67, 94, 151));
        }

        .quick-btn {
            padding: 0.5rem 1rem;
            background: linear-gradient(45deg,rgb(67, 94, 151), rgba(255, 255, 255, 0.733));
            border: none;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
        }

        .quick-btn:hover {
            background: linear-gradient(45deg,rgba(255, 255, 255, 0.733),rgb(67, 94, 151));
        }

        .quick-btn:last-child {
            margin-top: 24px;
        }

        .section {
            margin: 3rem 0;
            padding: 0 1rem;
        }
        /* Orange border for Earth and Galaxy sections */
        .section:nth-of-type(2), .section:nth-of-type(3) {
            border: 2.5px solid #5b78bb;
            border-radius: 18px;
            box-shadow: 0 0 24px #fff;
            background: linear-gradient(90deg, rgba(255,255,255) 0%, rgba(256,256,256,0.3) 100%);
        }

        .section-title, #customTitle {
            text-align: left;
            font-size: 2rem;
            color: #ffffffbd;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 0 10px #fff;
            text-align: center;
            padding: 1.5rem;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            display: block;
        }

        .gallery {
            display: flex;
            gap: 2rem;
            padding: 2rem 1rem;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE 10+ */
            position: relative;
            mask: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
            -webkit-mask: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
            box-shadow: 0 8px 32px rgba(255,255,255,0.6), 0 1.5px 0px #5b78bb;
            border-radius: 20px;
            background: linear-gradient(90deg, rgba(256, 256, 256, 0.1) 0%, rgba(256,256,256,0.08) 100%);
        }

        .gallery::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 100%;
            background: linear-gradient(to right, rgba(12, 12, 12, 0.8), transparent);
            z-index: 10;
            pointer-events: none;
        }

        .gallery::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 40px;
            height: 100%;
            background: linear-gradient(to left, rgba(12, 12, 12, 0.8), transparent);
            z-index: 10;
            pointer-events: none;
        }

        /* Custom scrollbar styles */
        .gallery::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .imgs {
            background: rgba(7, 7, 7, 0.438);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            border: 1.5px solid #fff;
            position: relative;
            min-width: 320px;
            max-width: 320px;
            cursor: pointer;
            transform-origin: center;
            box-shadow: 0 8px 32px rgba(238, 238, 238, 0.15), 0 1.5px 0px #808080;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(256,256,256,0.08), rgba(0,0,0,0.08));
        }

        .imgs:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(256, 256, 256, 0.2);
            border-color: #6d8ace;
            background: linear-gradient(135deg, rgba(256,256,256), rgba(0,0,0.6));
        }

        .imgs::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgb(256,256,256));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }

        /* .imgs:hover::before {
            opacity: 1;
        } */

        .imgs img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .imgs:hover img {
            transform: scale(1.05);
        }

        .imgs h3 {
            padding: 1rem;
            font-size: 1.1rem;
            line-height: 1.4;
            background: linear-gradient(45deg, #3084d8, rgba(255, 255, 255, 0.733));
        }

        .loading {
            text-align: center;
            padding: 2rem;
            font-size: 1.2rem;
            color: #fff;
        }

        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(78, 205, 196, 0.3);
            border-top: 2px solid #4ecdc4;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error {
            text-align: center;
            padding: 2rem;
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            margin: 1rem;
        }

        /* Remove stars effect */
        .stars {
            display: none;
        }
        .star {
            display: none;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), #7c7cc7f2);
            margin: 2% auto;
            padding: 0;
            border-radius: 15px;
            width: 90%;
            max-width: 900px;
            max-height: 90%;
            overflow-y: auto;
            border: 2.5px solid #fff;
            box-shadow: 0 0 32px #fff, 0 0 16px #7c7c7c;
            animation: slideIn 0.3s ease;
        }
@media(max-width: 950px){
    .logo a{
        margin-left: 30px;
    }
    .signup{
        margin-right: 30px;
    }
    .navbar ul{
        gap: 28px;
    }
}
@media(max-width: 880px){
    .logo a{
        margin-left: 20px;
        font-size: 1.5rem;
    }
    .signup{
        margin-right: 20px;
    }
    .navbar ul{
        gap: 20px;
    }
}
@media(max-width: 520px){
    .comb{
        gap: 10px;
    }
            .search-btn,.quick-btn,.next-btn{
        background: linear-gradient(45deg, #3084d8, rgba(255, 255, 255, 0.733));
    }
            .search-btn:hover,.quick-btn:hover,.next-btn:hover{
        background: linear-gradient(45deg,rgba(255, 255, 255, 0.733),#3084d8);
    }
            .sidebar{
                        box-shadow: -10px 0 10px #3084d8;
            }
            .sidebar ul li a:hover{
            color:  #3084d8;
        }
            .footer div p:hover{
            color: #3084d8;
        }
            .follow p a:hover{
            color: #3084d8;
        }
             .terms p a:hover{
            color:#3084d8;
        }
}
@media(max-width: 420px){
    .logo a{
    font-size: 18px;
   } 
   .signup{
    padding: 3px 12px;
   }
}
@media(max-width: 390px){
    .logo a{
        font-size: 17px;
    }
    .signup{
        padding: 1.5px 8px;
        font-size: 12px;
    }
}
@media(max-width: 372px){
    .logo a{
        font-size: 14px;
    }
    .signup{
        padding: 1.3px 6px;
        font-size: 11px;
    }
}
@media(max-width: 361px){
    .logo a{
        font-size: 12px;
    }
    .signup{
        padding: 1.1px 6px;
        font-size: 8px;
    }
}
        @keyframes slideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid rgba(3, 3, 3, 0.2);
            background: rgba(11, 12, 12, 0.1);
        }

        .modal-title {
            font-size: 1.5rem;
            color: #f4f7f6;
            margin: 0;
            text-shadow: 0 0 8px #e9f3f2;
        }

        .close {
            color: #f7f7f7;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(20, 20, 20, 0.1);
        }

        .close:hover {
            background: rgba(126, 124, 124, 0.2);
            transform: scale(1.1);
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-image {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .modal-details {
            color: white;
            line-height: 1.6;
        }

        .detail-item {
            margin-bottom: 1rem;
            padding: 0.8rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border-left: 3px solid #808080;
        }

        .detail-label {
            font-weight: bold;
            color: #808080;
            display: inline-block;
            min-width: 120px;
            margin-bottom: 0.3rem;
        }

        .detail-value {
            color: rgba(255, 255, 255, 0.9);
        }

        .imgs {
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }
            
            .search-box {
                flex-direction: column;
            }
            
            .gallery {
                padding: 1rem;
                gap: 1.5rem;
                mask: none;
                -webkit-mask: none;
            }
            
            .gallery::before,
            .gallery::after {
                display: none;
            }
            
            .imgs {
                min-width: 280px;
                max-width: 280px;
            }

            .modal-content {
                width: 95%;
                margin: 5% auto;
            }

            .modal-body {
                padding: 1rem;
            }

            .modal-header {
                padding: 1rem;
            }

            .modal-title {
                font-size: 1.2rem;
            }

            .detail-label {
                min-width: 100px;
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1.8rem;
                letter-spacing: 2px;
                padding: 1rem;
            }

            .scroll-indicator {
                right: 1rem;
                padding: 0.6rem;
                font-size: 1rem;
            }
        }

        /* Add scroll/fade effect for gallery transitions */
        .gallery.loading-transition {
            opacity: 0;
            transform: translateY(20px);
        }
        .gallery.loading-complete {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .imgs {
            animation: fadeSlideIn 0.5s ease forwards;
            opacity: 0;
        }
        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- Footer Styles --- */
        .footer{
            width: 100%;
            height: 40%;
            background-color:#00000075;
            backdrop-filter: blur(10px);
        }
        .foot{
            color: #fff;
            display: flex;
            justify-content:space-evenly;
            align-items: center;
            line-height: 1.5rem;
            padding-top: 2.5rem;
        }
        .footer div h3{
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            word-spacing: 5px;
        }
        .footer div p{
            font-family: 'Roboto';
            font-size: 12px;
        }
        .footer div p:hover{
            color: #5678c5;
        }
        .res{
             color: #fff;
            margin-top: 2.5rem;
            font-family: 'Roboto';
            display: flex;
            justify-content: space-between;
        }
        .follow p a{
            text-decoration: none;
            color:#fff;
        }
        .follow p a:hover{
            color: #5678c5;
        }
        .end{
            margin-left: 80px;
            font-size: 12px;
            margin-bottom: 20px;
        }
        .terms{
            margin-right: 80px;
            display: flex;
            gap: 40px;
            margin-bottom: 20px;
        }
        .terms p a{
            text-decoration: none;
            color: #fff;
        }
        .terms p a:hover{
            cursor: pointer;
            color:#5678c5;
        }
        .foot div h3{
            letter-spacing: 1px;
        }
        @media(max-width: 768px){
            .search-btn{
                padding: 10px;
                margin: 0;
            }
            .quick-btn{
                margin: 0;
            }
            .quick-btn:last-child{
                margin-top: 0;
            }
            .quick-search{
                display: flex;
                justify-content: space-between;
            }
            .hamburger a{
                display: flex;
            }
            .navbar .nav-links li a{
                display: none;
            }
            .header h1 {
                font-size: 4rem;
            }
            .search-box {
                flex-direction: column;
            }
            .gallery {
                padding: 1rem;
                gap: 1.5rem;
                mask: none;
                -webkit-mask: none;
            }
            .gallery::before,
            .gallery::after {
                display: none;
            }
            .imgs {
                min-width: 280px;
                max-width: 280px;
            }
            .modal-content {
                width: 95%;
                margin: 5% auto;
            }
            .modal-body {
                padding: 1rem;
            }
            .modal-header {
                padding: 1rem;
            }
            .modal-title {
                font-size: 1.2rem;
            }
            .detail-label {
                min-width: 100px;
                font-size: 0.9rem;
            }
            .section-title {
                font-size: 1.8rem;
                letter-spacing: 2px;
                padding: 1rem;
            }
            .end{
                margin-left: 60px;
            }
            .terms{
                margin-right: 60px;
                gap: 30px;
            }
            .follow,.teammem,.creators,.contactus{
                text-align: start;
            }
        }

        @media(max-width: 700px){
            .header h1{
                font-size: 3.5rem;
            }
            .imgs{
                width: 95%;
                min-width: 95%;
                max-width: 95%;
            }
            .footer div h3{
                font-size: 15px;
            }
            .footer div p{
                font-size: 11px;
            }
            .end{
                font-size: 11px;
                margin-left: 40px;
            }
            .terms{
                margin-right: 40px;
                gap: 20px;
            }
            .search-container {
                padding: 0 2rem;
            }
        }
        

        @media(max-width: 590px){
            .header h1{
                font-size: 3rem;
            }
            .imgs img{
                height: 200px;
            }
            .search-container {
                max-width: 90%;
                padding: 0 1rem;
            }
        }

        @media(max-width: 520px){
            .quick-btn:last-child{
                margin-top: 0;
            }
            .navbar{
                transform:translateY(-39.5px);
            }
            .foot{
                display: block;
                padding: 50px 30px 0;
            }
            .res{
                display: flex;
                flex-direction: column;
                margin-top: 20px;
            }
            .end{
                display: flex;
                justify-content: flex-start;
                margin: 0 0 15px 0;
                padding: 0 30px 0;
            }
            .terms{
                display: flex;
                justify-content: flex-start;
                margin: 0 0 20px 0;
                padding: 0 30px 0;
            }
            .header h1{
                font-size: 2.5rem;
            }
            .gallery {
                padding: 0.5rem;
                gap: 1rem;
            }
            .section {
                padding: 0 0.5rem;
            }
            .quick-search {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 0.8rem;
            }
        }

        @media(max-width: 420px){
            .navbar{
                transform: translateY(-23.5px);
            }
            .header h1 {
                font-size: 2.2rem;
            }
            .section-title {
                font-size: 1.5rem;
                padding: 0.8rem;
            }
            .search-container {
                margin: 1.5rem auto 2rem;
            }
        }

        @media(max-width: 390px){
            .header h1{
                font-size: 2rem;
            }
            .search-btn, .quick-btn, .next-btn, .prev-btn {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }
            .imgs h3 {
                font-size: 0.9rem;
                padding: 0.8rem;
            }
        }

        @media(max-width: 333px){
            .header h1 {
                font-size: 1.8rem;
            }
            .section-title {
                font-size: 1.3rem;
            }
            .quick-search {
                grid-template-columns: 1fr;
            }
            .gallery-nav {
                flex-direction: column;
                gap: 1rem !important;
            }
            .search-btn, .quick-btn, .next-btn, .prev-btn {
                padding: 0.5rem 0.8rem;
                font-size: 0.8rem;
            }
        }
