@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .dropdown-menu li {
    width: 200px;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
  }
  
  .dropdown-menu a:hover {
    background-color: #444;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
body {
    min-height: 100vh;
    background:black;
    color:white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
header {
    width: 100%;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
}

.logo h2 {
    font-size: 2em;
    font-weight: 500;
    color: #fff;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
}

.logo h2 span {
    transition: 0.5s;
}

.logo h2:hover span {
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #FFA500, 0 0 40px  #FFA500, 0 0 80px  #FFA500;
    margin-right: 10px;
}

nav ul {
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    list-style: none;
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    display: inline-block;
    overflow: hidden;
    transition: color 0.5s ease;
}

nav ul li a::before {
    content: attr(data-hover);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: gold;
    transition: top 0.5s ease;
    text-transform: uppercase;
    font-weight: 600;
}

nav ul li a:hover::before {
    top: 0;
}

nav ul li a:hover {
    color:greenyellow;
}

nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%; 
    width: 100px;
    height: 100px; 
    background-size: 100% 100%;
    background-position: center; 
    background-repeat: no-repeat; 
    z-index: -1;
    opacity: 0; 
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.5s ease;
    ;
}

nav ul li:last-child::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5); /* Smaller scale */
    transition: all 0.5s ease;
}
nav ul li:nth-child(1)::after {
    background-image: url('img1.jpg');
}

nav ul li:nth-child(2)::after {
    background-image: url('img2.jpg');
}

nav ul li:nth-child(3)::after {
    background-image: url('img3.jpg');
}

nav ul li:nth-child(4)::after {
    background-image: url('img4.jpg');
}

nav ul li:nth-child(5)::after {
    background-image: url('img5.jpg');
}

nav ul li:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.headings {
    text-align: center;
    color: #FFA500; /* Orangish Gold color */
    padding: 100px 0 50px; /* Adjust spacing around the headings */
}

.headings h1 {
    font-size: 3em;
    margin-bottom: -50px; /* Space between the two headings */
    position: relative;
    padding: 20px;
    display: inline-block;
    background-color: transparent; /* Keeps the background transparent */
    color:#FFA500; /* Text color */
    border: 2px solid transparent; /* Invisible border by default */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glowing effect on hover */
.headings h1:hover {
    border: 2px solid #f1c40f; /* Golden border on hover */
    box-shadow: 0 0 10px #f1c40f, 0 0 20px #f1c40f, 0 0 30px #ffcc00; /* Glowing effect */
    transform: scale(1.05); /* Slightly enlarge the heading */
}


.headings h2 {
    font-size: 2em;
    font-weight: 400;
    margin-top: 0;
}

.container {
    position: relative;
    width: 1000px;
    height: 600px;
    margin: 50px auto; /* Center the slider below the headings */
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
    overflow: hidden;
}

.container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.slide .item:nth-child(3) {
    left: 50%;
}

.slide .item:nth-child(4) {
    left: calc(50% + 220px);
}

.slide .item:nth-child(5) {
    left: calc(50% + 440px);
}

/* Hide items beyond the fifth */
.slide .item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    background-color: #FFA500;
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #FFA500;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover {
    background: #ababab;
    color: #fff;
}


/* Slider Section with Background Image */
.slider-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('bg-image.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.slider-content {
    text-align: center;
    color: white;
    padding: 20px;
    backdrop-filter: blur(3px); /* Optional for text readability */
}

.slider-content h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 200px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px white;
    position: relative;
    letter-spacing: 2px;
    overflow: hidden;
    transition: color 0.5s ease-in-out;
}

.slider-content h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffcc00, #d4af37, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1; /* Keeps it behind the text */
    transition: width 1s ease-in-out;
}

.slider-content h2:hover {
    -webkit-text-stroke: 0;
    color: #ffd700; /* Sets the text color to gold */
}

.slider-content h2:hover::before {
    width: 100%;
    -webkit-text-fill-color: #ffd700; /* Fill letters with golden color */
    filter: drop-shadow(0 0 25px #f1c40f);
}


/* Glow Animation */
@keyframes golden-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.6), 0 0 30px rgba(241, 196, 15, 0.4);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 204, 0, 1), 0 0 20px rgba(241, 196, 15, 0.8), 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

/* 3D Rotating Slider (No changes to functionality) */
.slider {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 30s linear infinite;
    margin: 20px auto;
}

@keyframes rotate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.slider span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(350px);
}

.slider span img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: 0.5s;
}

.slider span:hover img {
    transform: translateY(-30px) scale(1.2);
}

.card-container {
    margin-top: 100px;
    display: flex;
    gap: 20px; /* Space between cards */
    justify-content: center; /* Centers the cards horizontally */
    margin-bottom: 30px;
}

.box {
    position: relative;
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 1s;
    margin-left: 70px;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container without distorting */
}

.box .front,
.box .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid #fff;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    transition: transform 2s;
}

.box .front {
    transform: perspective(1000px) rotateY(0deg);
    z-index: 2;
}

.box .back {
    transform: perspective(1000px) rotateY(180deg);
    z-index: 1;
}

.box:hover .front {
    transform: perspective(1000px) rotateY(-180deg);
    z-index: 2;
}

.box:hover .back {
    transform: perspective(1000px) rotateY(0deg);
    z-index: 1;
}

.library-section {
    text-align: center; /* Center the heading */
    margin-bottom: 50px; /* Add space below the heading */
}

.library-heading {
    font-size: 3rem; /* Larger size for the heading */
    font-weight: bold;
    color: #FFB300; /* Orangish gold color */
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: text-shadow 0.3s ease; /* Smooth transition for glow effect */
}

/* Glow effect on hover */
.library-heading:hover {
    text-shadow: 0 0 5px #FFB300, 0 0 10px #FFB300, 0 0 15px #FFB300; /* Softer glow */
}

.book-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Add space between cards */
}

/* Rest of the card styles */
.book-card {
    position: relative;
    margin: 20px 0;
    width: 300px;
    height: 400px;
    background: #fff;
    color: black;
    transform-style: preserve-3d;
    transform: perspective(2000px);
    transition: 1s;
    box-shadow: inset 300px 0 50px rgba(0, 0, 0, .5);
}

.book-card:hover {
    z-index: 1000;
    transform: perspective(2000px) rotate(-10deg);
    box-shadow: inset 20px 0 50px rgba(0, 0, 0, .5);
}

.book-card .imgBox {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
    box-sizing: border-box;
    transform-origin: left;
    z-index: 1;
    transition: 1s;
}

.book-card .imgBox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card:hover .imgBox {
    transform: rotateY(-135deg);
}

.book-card .details {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 20px;
}
.footer {
    background-color: #444; /* Gray background color */
    color: white;
    padding: 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.footer-left,
.footer-middle,
.footer-right {
    width: 30%;
    padding: 10px;
}
.footer-left h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.footer-left p {
    font-size: 1rem;
    color: #ccc;
}
.footer-middle h4,
.footer-right h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.footer-middle ul,
.footer-right ul {
    list-style-type: none;
    padding: 0;
}
.footer-middle li,
.footer-right li {
    margin: 10px 0;
}

.footer-middle a,
.footer-right a {
    text-decoration: none;
    color: #FFB300;
    transition: color 0.3s;
}

.footer-middle a:hover,
.footer-right a:hover {
    color: #fff;
}
.footer-bottom {
    background-color: #333; 
    padding: 10px;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 5px 0;
}
.footer-bottom p:last-child {
    font-weight: bold;
    color: #FFB300;
}

/* *{
    margin: 0;
    padding: 0;
    font-family: 'Poppins',sans-serif;
    box-sizing: border-box;
}
.user{
    width: 100%;
    height:100vh;
    background-color: pink;
    color: rgb(1, 1, 1);
} */
/* nav{
    background-color: black;
    width: 100%;
    padding: 10px 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
} */
/* .user-pic{
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 30px;
} */
.sub-menu-wrap{
    position: absolute;
    top:100%;
    right: 10%;
    width: 320px;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s;
}
.sub-menu-wrap.open-menu{
    max-height: 400px;
} 
.sub-menu{
    background-color: white;
    padding:20px;
    margin: 10px;
}
.user-info{
    display: flex;
    align-items: center;
}
.user-info h3{
    font-weight: 500;
}
.user-info img{
    width: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.sub-menu hr{
    border: 0;
    height: 1px;
    width: 100%;
    background: black;
    margin: 15px 0 10px;
}
.sub-menu-link{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #525252;
    margin: 12px 0;
}
.sub-menu-link p{
    width: 100%;
}
.sub-menu-link img{
    width: 40px;
    background: #e5e5e5;
    border-radius: 50%;
    padding: 8px;
    margin-right: 15px;
}
.sub-menu-link span{
    font-size: 22px;
    transition: transform 0.5s;
}
.sub-menu-link:hover span{
    transform: translate(5px);
}
.sub-menu-link:hover p{
    font-weight: 600;
}
