/* Text writing*/
h1{
    display:inline-block;
    font-size:20px;
    font-weight:900;
    color:#000;
    white-space:nowrap;
    overflow:hidden;
    border-right:4px solid #000;
    width:22ch;
    animation: typing 3s steps(22,end) forwards;
}

@keyframes typing{
    from{
        width:0;
    }
    to{
        width:22ch;
        border-right:none;
    }
}



 /* Background Overlay */
    .popup{
      display: none;
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
    }

    /* Popup Box */
    .popup-content{
      background: white;
      width: 350px;
      padding: 25px;
      border-radius: 10px;
      position: relative;
      margin: 20% auto;
      text-align: center;
    }

    .popup-content h2{
      margin-bottom: 100px;
    }

    .popup-content input{
      width: 90%;
      padding: 10px;
      margin: 8px 0;
    }


    /* Close Button */
    .close{
      position: absolute;
      right: 15px;
      top: 10px;
      font-size: 25px;
      cursor: pointer;
    }
.product-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}
.carousel-control-prev,
.carousel-control-next
{
    display: none;
}
.product-card:hover{
    transform:translateY(-5px);
}

.product-card img{
    height:250px;
    object-fit:cover;
}

.price{
    color:#0d6efd;
    font-size:22px;
    font-weight:bold;
}





/* Navbar */
nav{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav ul li a{
    text-decoration:none;
    color:#fff;
    font-size:18px;
    transition:0.3s;
}

nav ul li a:hover{
    color:#007bff;
}

/* Mobile View */
@media (max-width:768px){
    nav{
        display:none;
    }
}

/* Demo Content */
.content{
    padding:40px;
    text-align:center;
}

.content h1{
    margin-bottom:15px;
}






*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background: linear-gradient(to right, #ffffff, #0d6efd);}





/* Floating Menu Button */
.menu-btn{
    position:fixed;
    top:20px;
    left:20px;
    z-index:1100;
    border-radius:50px;
    padding:12px 22px;
    font-weight:600;
    transition:.3s;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.menu-btn.hide{
    opacity:0;
    visibility:hidden;
    transform:scale(.8);
}

/* Glass Sidebar */
.offcanvas{
    width:280px;
    margin:15px;
    height:calc(100vh - 30px);
    border-radius:25px;
    background:white;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:none;
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.offcanvas-header{
    border-bottom:1px solid rgba(0,0,0,.1);
}

.offcanvas-title{
    font-size:24px;
    color:#0d6efd;
    font-weight:bold;
}

.nav-link{
    color:#333;
    border-radius:15px;
    padding:14px 18px;
    margin-bottom:8px;
    transition:.3s;
    font-weight:500;
}

.nav-link i{
    margin-right:12px;
}

.nav-link:hover{
    background:#0d6efd;
    color:#fff;
    transform:translateX(8px);
}

.content{
    padding:120px 40px;
}

.card{
    border:none;
    border-radius:25px;
    padding:40px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

@media(max-width:768px){

.content{
    padding:90px 20px;
}

.offcanvas{
    width:260px;
  margin: auto;
    height:calc(100vh - 20px);
}
}


/* Table style */
table 
{
    background-color: white;
    box-shadow: 1px 1px 1px 1px rgba(8, 106, 172, 0.459);
    transition: 0.3s;
    border-radius: 20px;
    text-align: center;
}
td{
    padding-left: 20px;
    padding-right: 20px;
}
table:hover{
    box-shadow: 8px 12px 12px rgba(8, 106, 172, 0.459);
}


/* input button style */
input[type=button]
{
    background:#0d6efd;
    color:#fff;
    transform:translateX(8px);
    border: 0;
    border-radius: 15px;
    height: 50px;
    width: 300px;
    top:20px;
    left:20px;
    z-index:1100;
    border-radius:50px;
    padding:12px 22px;
    font-weight:600;
    transition:.3s;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}




.footer-links{
    list-style:none;
    padding:0;
}

.footer-links li{
    margin:10px 0;
}

.footer-links a{
    color:#fff;
    text-decoration:none;
}

.footer-links a:hover{
    color:#0d6efd;
}

.footer{
    background:#1e2025;
    color:#fff;
    width:100%;
    margin:50px 0 0;
    padding:50px 0 20px;
    position:relative;
    text-align: center;
}


.carousel{
width:100%;
overflow:hidden;
}

.track{
display:flex;
gap:20px;
width:max-content;
animation:scroll 25s linear infinite;
}

.track:hover{
animation-play-state:paused;
}

.track img{
width:200px;
height:180px;
border-radius:12px;
object-fit:cover;
box-shadow:0 5px 15px rgba(0,0,0,.15);
transition:.3s;
cursor:pointer;
}

.track img:hover{
transform:scale(1.08);
box-shadow:0 10px 25px rgba(0,0,0,.3);
}

@keyframes scroll{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}






.update-scroll{
    height:500px;
    overflow-y:auto;
    border:1px solid #ccc;
    padding:10px;
    border-radius:8px;
    background:#fff;
}

.update-scroll p{
    margin:10px 0;
    padding:8px;
    border-bottom:1px solid #eee;
}