* {
    margin: 0px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 2;
    font-size: 24px;
    width: 100%;
    background-color: white;
    height: 60px;
     padding: 0 30px;
     box-sizing: border-box;
}
.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 30px;
    width: 30px;
    margin-right: 10px;
}

.site-name {
    font-weight: bold;
    color: #224253;
    font-size: 24px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.na {
    text-decoration: none;
    margin: 0 16px;
    color: #224253;
}
.na:hover {
    color: #48616e;
    text-decoration: underline;
} 

.photo {
    background-image: url(./photos/ho.jpg);
    width: 100%;
    height: 700px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-top: 90px;
    position: relative;

}

.spa {
    background-color: #0000005c;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spa span {
  color: white;
  font-size: 90px;
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 5s steps(18, end) infinite,
             colorChange 7s linear infinite; 
}

@keyframes typing {
  0%   { width: 0; }
  25%  { width: 18ch; }
  75%  { width: 18ch; }
  100% { width: 0; }
}

@keyframes colorChange {
  0%   { color: white; }
  50%  { color:  rgba(203, 185, 84, 0.399) }
  100% { color: white; }
}

.parent {
    background-color: #f7f9fa;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.mee {
    width: 80%;
    margin: 100px auto 40px;
    background-color: #f7f9fa;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
    
}


.mee h1 {
    color: #355b6f;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    font-weight: bold;

}

.mee p {
    color: #444;
    line-height: 1.7;
    font-size: 20px;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.chair-1,
.tablel-2,
.cabinet-3 {
    width: 90%;
    margin: 30px auto 40px;
    background-color: #f7f9fa;
    padding: 40px;
    border-radius: 10px;

}

.ch,
.tb,
.ca {
    color: #224253;
    display: flex;
    justify-content: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: 50px;
    font-size: 30px;
    font-weight: bold;
}

.product {
    background-color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 20px;
    margin-top: 10px;
}

.card {
    background-color: #c4c4c480;
    border-radius: 30px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
}

.card:hover {
    transform: scale(1.05);
}

.footer {
    background-color: #224253;
    color: white;
    padding: 50px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

}

.footer h2 {
    font-size: 30px;
    margin: 30px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

}

.contact-us p {
    font-size: 16px;
    color: #dddddd;
    margin-top: 40px;
    padding: 5px;
    margin: 8px 0;
    gap: 10px;
    display: flex;
    align-items: center;
}

.social a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #dddddd;
    margin-top: 90px;
    margin: 8px 0;
    text-decoration: none;
    padding: 5px;

}

.contact-us,
.social {
    width: 30%;
}

/* dark mode */

.mode-toggle {
    background: none;
    border: none;
    font-size: 24px;
    margin: 15px;
    cursor: pointer;
    color: #224253;
}

.mode-toggle:hover {
    color: #284d61;
}
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode nav {
    background-color: #000000;
    
}

body.dark-mode .na {
    color: #f1f1f1;
}

body.dark-mode .na:hover {
    color: #bbbbbb;
    text-decoration: underline;
}

body.dark-mode .photo {
    background-blend-mode: darken;
}

body.dark-mode .spa {
    background-color: rgba(0, 0, 0, 0.7);
}
body.dark-mode .parent,
body.dark-mode .chair-1,
body.dark-mode .tablel-2,
body.dark-mode .cabinet-3,
body.dark-mode .product {
    background-color: #000000 !important;
}
body.dark-mode .mee{
    background-color: #111111;

}
body.dark-mode .mee p,
body.dark-mode .mee h1,
body.dark-mode .ch,
body.dark-mode .tb,
body.dark-mode .ca {
    color: #f1f1f1;
}

body.dark-mode .card {
    background-color: #111111;
}

body.dark-mode .footer {
    background-color:#101010;
    color: #ccc;
}

body.dark-mode .contact-us p,
body.dark-mode .social a {
    color: #ccc;
}

body.dark-mode .spa span {
    color: #ffffff;
}

.dark-mode .site-name {
    color: #ffffff;
}
/* Medium devices (tablets, less than 992px) */
@media (m-width: 991px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }

    .nav-right {
        flex-direction: column;
        margin-top: 10px;
    }

    .na {
        margin: 10px 0;
    }

    .spa span {
        font-size: 60px;
        text-align: center;
        white-space: normal;
    }

    .mee, .chair-1, .tablel-2, .cabinet-3 {
        width: 90%;
        padding: 20px;
    }

    .product {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-us,
    .social {
        width: 100%;
    }

    .card img {
        width: 100%;
        height: auto;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .site-name {
        font-size: 20px;
    }

    .logo {
        width: 25px;
        height: 25px;
    }

    .spa span {
        font-size: 40px;
    }

    .product {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 10px;
    }

    .card img {
        width: 100%;
        height: auto;
    }

    .mee p {
        font-size: 18px;
    }

    .ch, .tb, .ca {
        font-size: 24px;
    }

    .footer h2 {
        font-size: 24px;
        margin: 10px 0;
    }

    .mode-toggle {
        font-size: 20px;
        margin: 10px;
    }
}
.sidebar {
  position: fixed;
  top: 400px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;

}

.icon {
  position: relative;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  margin: 10px;
}

.icon:hover {
  background:  #1D4358;
   color: #fff;
}
.icon:hover i{
    color: #fff;
}

.icon i {
  font-size: 18px;
  color: #1D4358;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

.badge.green {
  background: #28a745; 
}