*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= PRELOADER ================= */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

/* Dark mode */
body.dark-mode {
  --bg-color: #121212;
  --text-color: #ffffff;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ff6600;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 15px 30px;
  color: #fff;
}
.navbar .logo h2 {
  margin: 0;
}
.navbar .nav-links {
  display: flex;
  gap: 30px;
}
.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.navbar .nav-links a:hover {
  color: orange;
}
.mobile-menu{
    display: block;
}

.mobile-menu a{
    text-decoration: none;
    color: white;
    margin: 10px;
    font-size: larger;
    margin-top: 30px;
    border-bottom: 1px solid white;
}

.mobile-menu a:hover{ 
    background-color: orange;

}


.icon{
    display: none;
}

.tyu{
    display: none;
}
.navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background:rgb(15, 15, 15);
      color: #fff;
      position: relative;
      z-index: 1100;
    }

    .navbar h2 span {
      color: #ff6600;
    }

    .menu-icon, .close-icon {
      cursor: pointer;
      font-size: 18px;
    }

    .close-icon {
      display: none; /* hidden initially */
    }

    /* Mobile Menu */
    .mobile-menu {
      display: none;
      background: rgb(15, 15, 15);
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      z-index: 1000;
      margin-top: -10px;
    }

    .mobile-menu a {
      display: block;
      padding: 12px;
      color: white;
      text-decoration: none;
      border-bottom: 1px solid #444;
    }

    .mobile-menu a:hover {
      background: orange;
    }

    .logo1 a{
        text-decoration: none;
        color: white;
        font-size: larger;
        margin: 20px;
        border-bottom: 2px solid orange;
        
    }

    .logo1 a:hover{
        background-color: orange;
    }

    .calc-body{
      width: 35%;
      background-color: black;
      height: 600px;
      border-radius: 20px;
      color: white;
      padding: 30px;
      margin-top: 70px;
      margin-left: 90px;
    }

    .screen{
      padding: 20px;
      height: 80px;
      font-size: 30px;
      text-align: right;
      background-color: white;
      color: black;
      border-radius: 20px;
    }

    .button{
      width: 100%;
      height: auto;
    }

    .row{
      width: 100%;
      height: auto;
      margin: 20px 0;
      display: flex;
      text-align: center;
      justify-content: center;
      align-items: center;
      justify-content: space-between;
    }

    .row input{
      padding: 30px 30px;
      width: fit-content;
      height: 20px;
      border: none;
      border-radius: 50%;
      font-size: 22px;
      background-color: rgb(89, 85, 85);
      color: white;
    }

    .row .orange{
      background-color: orange;
      color: white;
    }

    .row .zero{
      padding: 30px 80px;
      border-radius: 40px;

    }

    .row .double{
      padding: 26px;
    }

    .row .first{
      background-color: rgb(187, 182, 182);
      color: black;
    }

    /* ///////////counter section////////////////////////////////// */
    .counter-container {
      background: orange;
      width: 200px;
      height: 200px;
      margin-top: 30px;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
      text-align: center;
      margin-left: 550px;
      color: white;
    }
    h1 {
      font-size: 3rem;
      margin: 20px 0;
    }
    button {
      font-size: 1.5rem;
      padding: 10px 20px;
      margin: 10px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
    }
    .plus {
      background: #28a745;
      color: white;
    }
    .plus:hover {
      background: #218838;
    }
    .minus {
      background: #dc3545;
      color: white;
    }
    .minus:hover {
      background: #c82333;
    }



@media only screen and (max-width:600px) {

.items{
    display: none;
}
.tyu{
    display: block;
}

.hy{
    display: block;
}
.logo1{display: none;}

.calc-body{
      width: 90%;
      background-color: black;
      height: 600px;
      border-radius: 20px;
      color: white;
      padding: 30px;
      margin-top: 70px;
      margin-left: 20px;
    }

    .screen{
      padding: 20px;
      height: 80px;
      font-size: 30px;
      text-align: right;
      background-color: white;
      color: black;
      border-radius: 20px;
    }

    .row .zero{
      padding: 15px 65px;
    }

       .row input{
      padding: 20px 30px;
      width: fit-content;
      height: 60px;
      /* width: 20px; */
      /* border: 1px solid white; */
      border-radius: 50%;
      font-size: 22px;
      background-color: rgb(89, 85, 85);
      color: white;
    }

      .counter-container {
      background: orange;
      width: 200px;
      height: 200px;
      margin-top: 60px;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
      text-align: center;
      margin-left: 70px;
      color: white;
    }
}
