/* Base Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: sans-serif; background: linear-gradient(135deg, #dbeafe, #f3e8ff, #e0f2fe); } /* Sticky Header Layout */ header { width: 100%; background-color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } /* Left Section (Logo + Title + Toggle) */ .header-left { display: flex; align-items: center; gap: 15px; } .logo { display: flex; align-items: center; gap: 10px; } .logopng { width: 50px; } .title-text { font-size: 25px; font-weight: bold; color: purple; font-family: Georgia, 'Times New Roman', Times, serif; text-shadow: 6px 3px 5px rgb(129, 125, 125); } a { text-decoration: none; } /* Menu Toggle Button */ .menu-toggle { display: none; cursor: pointer; padding: 10px; background-color: purple; color: white; font-size: 18px; border: none; border-radius: 5px; } /* Navbar */ nav.navbar { flex-grow: 1; } .navbar ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; } .navbar ul li { position: relative; background: linear-gradient(145deg, #d1eaff, #a6cfe9); border-radius: 8px; width: 200px; text-align: center; box-shadow: 0 8px 12px 5px rgba(0, 0, 0, 0.2); transition: all 1s ease; } .navbar ul li a { display: block; text-decoration: none; color: black; height: 50px; line-height: 50px; border-radius: 8px; transition: background-color 1s, color 1s; } .navbar ul li:hover > a { color: white; animation-name: ButtonAnimation; animation-duration: 5s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-direction: alternate; } @keyframes ButtonAnimation { 0% { background-color: purple; color: white; } 25% { background-color: red; scale: 1.1; color: white; } 50% { background-color: rgb(17, 0, 255); scale: 1; color: yellow; } 75% { background-color: black; color: white; scale: 1.1; } 100% { background-color: greenyellow; color: black; } } /* Dropdowns */ .navbar ul li ul { display: none; position: absolute; top: 50px; left: 0; flex-direction: column; background: linear-gradient(145deg, #a6cfe9, #d1eaff); border-radius: 8px; z-index: 999; } .navbar ul li:hover > ul { display: flex; } .navbar ul li ul li ul { top: 0; left: 100%; position: absolute; display: none; background: linear-gradient(145deg, #e0f7fa, #a7d8ff); } .navbar ul li ul li:hover > ul { display: flex; flex-direction: column; } /* Responsive */ @media (max-width: 768px) { .menu-toggle { display: block; } .header-left { flex-direction: column; align-items: flex-start; gap: 10px; } nav.navbar { width: 100%; } .navbar ul { flex-direction: column; width: 100%; display: none; } .navbar ul.show { display: flex; } .navbar ul li { width: 100%; } .navbar ul li ul, .navbar ul li ul li ul { position: static; display: none; width: 100%; box-shadow: none; padding-left: 15px; } .navbar ul li.show > ul { display: flex; flex-direction: column; background-color: #d0ecf9; } .navbar ul li ul li.show > ul { display: flex; background-color: #e0f7fa; } .navbar ul li ul li { background-color: #d0ecf9; } .navbar ul li ul li ul li { color: white; } .navbar ul li ul li ul li a { color: black; } } .ntc{ font-size: 50px; }