/* General Reset for spacing */
-:root {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'khmer.combodia, sans-serif;
   text-decoration: none;
   list-style: none;
}
section {
  padding:2rem 9%;
}
html.body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;  
    background-position: center;  
    background-repeat: no-repeat; 
    background: #f5f5f5;
}
/* Header Style */
header {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
header .logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

/* Toggler for Mobile */
#toggler {
    display: none;
}

#toggler:checked + .hover {
    display: block;
}

label[for="toggler"] {
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none;
}

/* Navigation Menu */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e67e22;
}

/* Icons */
.icons {
    display: flex;
    gap: 15px;
}

.icons a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icons a:hover {
    color: #e67e22;
}

/* Media Queries for responsive layout */

/* For screens less than or equal to 768px */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    #toggler:checked + .hover {
        display: flex;
    }

     label[for="toggler"] {
        display: block;
    }
}
@media (max-width: 475px) {

  }
  
}
.home{
  display: flex;
  align-items: center;
  min-height: 30vh;
  background: url('deta'images/computer.png) no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.home.content{
  max-width: 50rem;  
}
.home.content span{
  font-size: 3.5rem;
  padding: 1rem 0;
  line-height: 1.5;
  font-weight: bolder;
}
.home.content p{
  font-size: 2rem;
  padding: 1rem 0;
  line-height: 1.5;
  color: #999;
  text-transform: none;
  height: 0px;
}
@media (max-width: 320px){
   html {
        font-size: 50%; /* Makes font size smaller for mobile */
    }

    nav a {
        font-size: 25px; /* Adjust link size on small screens */
    }

    .icons a {
        font-size: 25px;
  }
  
}
nav {
    background: #2c3e50;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
}
nav a:hover {
    color: #e67e22;
}
img {
    width: 400px;
    margin-top: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
h1 {
    color: #2c3e50;
}
p {
    color: ##404eff;
}
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}
.btn:hover {
    background: #d35400;
 }
.products {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.product {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    width: 200px;
}
.product img {
    width: 100%;
    border-radius: 8px;
}
.preview-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-align: left;
}
.preview-box p {
    margin: 10px 0;
}
form .btn {
    margin-right: 10px;
}
form {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #e67e22;
}

form button {
    padding: 12px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

form button:hover {
    background: #d35400;
}
.preview-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-align: left;
}

.preview-box p {
    margin: 10px 0;
}
/* About Section */
.about-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: url("..images/phg") no-repeat center center/cover; /* ដាក់ background image */
  color: #fff; /* default color for text */
}
/* Container alignment */
.about-section .container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5); /* transparent box over bg image */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Video */
.about-section video {
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Title */
.about-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: "Khmer", chrirathana sans-serif;
  font-weight: bold;
  color: #FFD700; /* Gold highlight */
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Paragraph */
.about-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #f1f1f1; /* light gray text color */
  margin: 20px 0;
  text-align: justify;
}

/* Buttons */
.about-section button,
.about-section a.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  background: #0a2621; /* Google red */
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
}
.about-section button:hover,
.about-section a.button:hover {
  background: #0a2621;
  transform: translateY(-3px);
}
/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Effect base */
.about-section .fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* When active (scroll to view) */
.about-section .fade-in.show {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 1s ease forwards;
}
form .btn {
    margin-right: 10px;
}
.review.content{
  max-width: 50rem;  
}
.review.content span{
  font-size: 3.5rem;
  padding: 1rem 0;
  line-height: 1.5;
  font-weight: bolder;
}
.review.content p{
  font-size: 2rem;
  padding: 1rem 0; 
  line-height: 1.5;
  color: #999;
  text-transform: none;
  height: 0px;
}
footer {
    margin-top: 40px;
    padding: 15px;
    background: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 8px;
}

footer .social a {
    color: #e67e22;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

footer .social a:hover {
    color: #f1c40f;
}
