*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: Arial, sans-serif;
            background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
            color: #fff;
            overflow-x: hidden;
        }
        .container {
            perspective: 1000px;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .cube {
            width: 300px;
            height: 300px;
            position: relative;
            transform-style: preserve-3d;
            animation: rotate 20s infinite linear;
            transition: transform 0.5s ease;
        }
        .cube:hover {
            animation-play-state: paused;
            transform: scale(1.1);
        }
        .face {
            position: absolute;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            backface-visibility: visible;
            transition: all 0.3s ease;
        }
        .cube:hover .face {
            background: linear-gradient(45deg, rgba(255, 0, 0, 0.3), rgba(0, 255, 0, 0.3), rgba(0, 0, 255, 0.3));
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            border: 2px solid #00ffff;
        }
        .front  { transform: rotateY(0deg) translateZ(150px); }
        .back   { transform: rotateY(180deg) translateZ(150px); }
        .right  { transform: rotateY(90deg) translateZ(150px); }
        .left   { transform: rotateY(-90deg) translateZ(150px); }
        .top    { transform: rotateX(90deg) translateZ(150px); }
        .bottom { transform: rotateX(-90deg) translateZ(150px); }
        
        @keyframes rotate {
            0% { transform: rotateX(0deg) rotateY(0deg); }
            100% { transform: rotateX(360deg) rotateY(360deg); }
        }
        .cube:hover .front  { background: rgba(255, 0, 0, 0.3); }
        .cube:hover .back   { background: rgba(0, 255, 0, 0.3); }
        .cube:hover .right  { background: rgba(0, 0, 255, 0.3); }
        .cube:hover .left   { background: rgba(255, 255, 0, 0.3); }
        .cube:hover .top    { background: rgba(255, 0, 255, 0.3); }
        .cube:hover .bottom { background: rgba(0, 255, 255, 0.3); }
        
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.7);
            padding: 20px 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .navbar ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
            display: flex;
            justify-content: center;
            
        }
        .navbar li {
            margin: 0 20px;
        }
        .navbar a {
            color: #fff;
            text-decoration: none;
            font-size: 18px;
            position: relative;
            overflow: hidden;
            display: inline-block;
            padding: 10px 20px;
            transition: all 0.5s ease;
            border-radius: 30px;
        }
        .navbar a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #ff00ff, #00ffff);
            z-index: -1;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.5s ease;
        }
        .navbar a:hover {
            color: #000;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }
        .navbar a:hover::before {
            transform: scaleX(1);
            transform-origin: left;
        }
        .navbar a:active {
            transform: scale(0.95) translateY(2px);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }
        @keyframes glowing {
            0% { background-position: 0 0; }
            50% { background-position: 400% 0; }
            100% { background-position: 0 0; }
        }
        .navbar a:focus {
            outline: none;
            animation: glowing 20s linear infinite;
            background-size: 400% 400%;
            background-image: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
        }
    
        .page1{
            height: 370vh;
            width: 100%;
           
        }
        h1 {
            font-size: 4rem;
            color: #fff;
            text-align: center;
            margin-bottom: 40px;
            text-transform: uppercase;
            position: relative;
            transform-style: preserve-3d;
            perspective: 1000px;
            margin-bottom: 15vh;
        }

        h1::before,
        h1::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #ff00ff, #00ffff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        h1::before {
            transform: translateZ(-10px);
            filter: blur(5px);
            opacity: 0.8;
        }

        h1::after {
            transform: translateZ(20px);
            filter: blur(2px);
        }

        @keyframes float-3d {
            0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1); }
            25% { transform: translateY(-15px) rotateX(10deg) rotateY(5deg) scale(1.05); }
            50% { transform: translateY(0) rotateX(-5deg) rotateY(-10deg) scale(1.1); }
            75% { transform: translateY(15px) rotateX(5deg) rotateY(10deg) scale(1.05); }
        }

        h1 {
            animation: float-3d 8s ease-in-out infinite;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                         0 0 20px rgba(255, 255, 255, 0.3),
                         0 0 30px rgba(255, 255, 255, 0.1);
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 3rem;
            }
        }
        .book-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            padding: 40px;
            perspective: 1500px;
            max-width: 1200px;
            margin: 0 auto;
            gap: 30px;
            transform: scale(1.1);
            transition: transform 0.5s ease;
            margin-top: 5vh;
        }
        .book-container:hover {
            transform: scale(1.15);
        }

        .book-box {
            width: 250px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin: 20px;
            text-align: center;
            transition: all 0.5s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transform-style: preserve-3d;
        }

        .book-box:hover {
            transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
            box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.2);
        }

        .book-box img {
            width: 150px;
            height: 200px;
            object-fit: cover;
            border-radius: 5px;
            margin-bottom: 15px;
            transform: translateZ(30px);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        .book-box h3 {
            color: #fff;
            font-size: 18px;
            margin-bottom: 10px;
            transform: translateZ(20px);
        }

        .book-box p {
            color: #ccc;
            font-size: 14px;
            margin-bottom: 15px;
            transform: translateZ(15px);
        }

        .book-box button {
            background: linear-gradient(45deg, #ff00ff, #00ffff);
            border: none;
            padding: 10px 20px;
            color: #000;
            font-weight: bold;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            transform: translateZ(25px);
        }

        .book-box button:hover {
            background: linear-gradient(45deg, #00ffff, #ff00ff);
            transform: translateZ(35px) scale(1.05);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotateY(0deg); }
            50% { transform: translateY(-20px) rotateY(5deg); }
        }

        .book-box {
            animation: float 6s ease-in-out infinite;
        }
        .about {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 30px;
            margin-top: 40px;
            margin-bottom: 10vh;
            backdrop-filter: blur(15px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            transform: perspective(1500px) rotateX(10deg);
            transition: transform 0.5s ease, box-shadow 0.5s ease;
            transform-style: preserve-3d;
        }

        .about:hover {
            transform: perspective(1500px) rotateX(0deg) scale(1.05);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
        }

        .about h2 {
            color: #0004ff;
            font-size: 32px;
            margin-bottom: 25px;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
            transform: translateZ(40px);
        }

        .about p {
            color: #ffffff;
            font-size: 18px;
            line-height: 1.8;
            transform: translateZ(30px);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }
.welcome h1{
    margin-top: 50vh;
    margin-bottom: 50vh;
    display: none;
}
.welcome h2{
    display: none;
    margin-top: 20vh;
    margin-bottom: 50vh;

}
        .contact {
            background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
            border-radius: 10px;
            padding: 30px;
            margin-top: 40px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            transform: translateX(-20px);
            opacity: 0;
            transition: all 0.6s ease;
            animation: fadeInLeft 1s ease forwards;
            margin-bottom: 10vh;
        }
        

        @keyframes fadeInLeft {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .contact h2 {
            color: #fff;
            font-size: 28px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .contact form {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 15px;
        }

        .contact input, .contact textarea {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 5px;
            padding: 12px;
            color: #fff;
            transition: all 0.3s ease;
            flex: 1;
        }

        .contact input:focus, .contact textarea:focus {
            background: rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .contact input::placeholder, .contact textarea::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .contact button {
            background: linear-gradient(45deg, #ff00ff, #00ffff);
            border: none;
            padding: 12px 20px;
            color: #000;
            font-weight: bold;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .contact button:hover {
            background: linear-gradient(45deg, #00ffff, #ff00ff);
            transform: scale(1.05);
                    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);}
     

                    .footer {
                        background: linear-gradient(45deg, #1a1a1a, #2c2c2c, #1a1a1a);
                        color: #fff;
                        padding: 80px 0 40px;
                        font-family: 'Roboto', Arial, sans-serif;
                        position: relative;
                        overflow: hidden;
                        margin-top: 15vh;
                    }
            
                    .footer::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        height: 6px;
                        background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
                        animation: rainbow 8s linear infinite;
                    }
            
                    @keyframes rainbow {
                        0% { background-position: 0% 50%; }
                        100% { background-position: 100% 50%; }
                    }
            
                    .footer-content {
                        display: flex;
                        justify-content: space-between;
                        flex-wrap: wrap;
                        max-width: 1200px;
                        margin: 0 auto;
                        padding: 0 30px;
                    }
            
                    .footer-section {
                        flex: 1;
                        margin: 20px;
                        min-width: 250px;
                        transition: all 0.4s ease;
                    }
            
                    .footer-section:hover {
                        transform: translateY(-8px);
                    }
            
                    .footer-section h3 {
                        color: #00ffff;
                        font-size: 26px;
                        margin-bottom: 25px;
                        text-transform: uppercase;
                        letter-spacing: 3px;
                        position: relative;
                        padding-bottom: 15px;
                    }
            
                    .footer-section h3::after {
                        content: '';
                        position: absolute;
                        left: 0;
                        bottom: 0;
                        width: 60px;
                        height: 3px;
                        background: linear-gradient(90deg, #ff00ff, #00ffff);
                    }
            
                    .footer-section p {
                        line-height: 2;
                        font-size: 16px;
                        color: #e0e0e0;
                    }
            
                    .footer-section.links ul {
                        list-style-type: none;
                        padding: 0;
                    }
            
                    .footer-section.links ul li {
                        margin-bottom: 15px;
                    }

                    .footer-section.links ul li a {
                        color: #e0e0e0;
                        text-decoration: none;
                        transition: all 0.3s ease;
                        display: inline-block;
                    }

                    .footer-section.links ul li a:hover {
                        color: #00ffff;
                        transform: translateX(5px);
                    }

                    .footer-section.contact p {
                        display: flex;
                        align-items: center;
                        margin-bottom: 15px;
                    }

                    .footer-section.contact i {
                        margin-right: 15px;
                        color: #00ffff;
                        font-size: 20px;
                    }

                    .social-icons {
                        margin-top: 30px;
                    }

                    .social-icons a {
                        display: inline-block;
                        width: 40px;
                        height: 40px;
                        background: #333;
                        color: #fff;
                        text-align: center;
                        line-height: 40px;
                        border-radius: 50%;
                        margin-right: 15px;
                        transition: all 0.4s ease;
                    }

                    .social-icons a:hover {
                        background: linear-gradient(45deg, #ff00ff, #00ffff);
                        color: #1a1a1a;
                        transform: translateY(-5px) rotate(360deg);
                        box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
                    }

                    .footer-bottom {
                        background: #1a1a1a;
                        padding: 25px 0;
                        text-align: center;
                        margin-top: 100px;
                        font-family: 'Roboto', Arial, sans-serif;
                        font-size: 30px;
                        color: black;
                    }

                    .footer-bottom p {
                        font-size: 15px;
                        color: #888;
                    }

                    @media (max-width: 768px) {
                        .footer-content {
                            flex-direction: column;
                        }
                        .footer-section {
                            margin: 30px 0;
                        }
                    }
                    
                    .mouse-follower {
                        position: fixed;
                        width: 20px;
                        height: 20px;
                        border-radius: 50%;
                        pointer-events: none;
                        z-index: 9999;
                        transition: transform 0.3s ease;
                    }
                    .mouse-follower:hover {
                        transform: scale(1.5);
                    }
                    .mouse-trail {
                        position: fixed;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        pointer-events: none;
                        z-index: 9998;
                    }
                    .trail-dot {
                        position: absolute;
                        width: 10px;
                        height: 10px;
                        border-radius: 50%;
                        pointer-events: none;
                    }
                
                    @media (max-width: 768px) {
                        .navbar ul {
                            flex-direction: column;
                            align-items: center;
                        }
                        .navbar li {
                            margin: 10px 0;
                        }
                        .cube {
                            width: 200px;
                            height: 200px;
                        }
                        .face {
                            width: 200px;
                            height: 200px;
                            font-size: 18px;
                        }
                        .front, .back, .right, .left, .top, .bottom {
                            transform: translateZ(100px);
                        }
                        .book-container {
                            transform: scale(1);
                        }
                        .book-box {
                            width: 100%;
                            max-width: 250px;
                        }
                        .contact form {
                            flex-direction: column;
                        }
                        .contact input, .contact textarea, .contact button {
                            width: 100%;
                        }
                        .navbar ul li a{
                            display: none;
                         }
                         .mouse-follower{
                             display: none;
                         }
                         .mouse-trail{
                             display: none;
                         }
                         .about{
                             animation: none;
                         }
                         .footer-bottom{
                            display: none;
                         }
                         .cube {
                            display: none;
                         }
                         .welcome h1{
                            display: block;
                         }

                    }

                    @media (max-width: 480px) {
                        h1 {
                            font-size: 2.5rem;
                        }
                        .cube {
                           display: none;
                        }

                        .face {
                            width: 150px;
                            height: 150px;
                            font-size: 14px;
                        }
                        .front, .back, .right, .left, .top, .bottom {
                            transform: translateZ(75px);
                        }
                             .navbar ul li a{
                       display: none;
                    }
                    .mouse-follower{
                        display: none;
                    }
                    .mouse-trail{
                        display: none;
                    }
                    .about{
                        animation: none;
                    }
                    .footer-bottom{
                       display: none;
                    }
                    .welcome h1{
                        display: block;
                     }
                   
                   
                    }
               

