* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
font-family: 'Konkhmer Sleokchher', sans-serif;
 line-height: 1.6;
  color: black;
}

/* Header */
header {
  /* box-shadow: none; */
  position: absolute;
  width: 100%;
  top:0;
  z-index:2;
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.nav-links a {
  color: black;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 900;
  padding: 10px;
  position: relative;
  background-color: #ffdd95;
  border-radius: 7px;
}

.nav-links a:hover {
  background-color: #25fc09;
}

.nav-links a::after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #25fc09;
  left: 0;
  bottom: -10px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links .logo {
  background: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 750px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffdd95;
  padding: 20px;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 10px;
  font-weight: 500;
  text-shadow: 0px 0px 35px rgb(228, 224, 6);
}

.hero p {
  font-size: 22px;
  margin-bottom: 50px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0px 0px 25px rgb(228, 224, 6);
}

.btn {
  background-color: #ffdd95;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.5s;
}
.btn::after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #25fc09;
  left: 0;
  bottom: -10px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.btn:hover{
  background-color:#25fc09;
}
.btn:hover::after {
  background-color: #25fc09;
  transform: scaleX(0.15);
}
/* About Me */
.About{
  background-color: #d0b49f;
}
.About h1 {
   text-align: center;
  font-size: 60px;
  margin-bottom: 10px;
  font-weight: 500;
 
}

.About p {
  font-size: 21px;
  margin-bottom: 0px;
  font-weight: 300;
  color: black;
  letter-spacing: normal;
  line-height:1.9;
  
}

/* Projects Section */
.projects {
  background-color:#a47551;
  color:black;
  padding: 10px 40px;
  max-width: 1550px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 45px;
  color: black;
  font-weight: 700;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content:space-evenly;
  gap: 20px;
}

.project-card {
  max-width: 700px;
  height: 400px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: scale(1.05);
  transform: translatey(-18px);
  box-shadow: 0 0 20px #25fc09, 0 0 40px #25fc09;
}

.project-img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.project-content {
  padding: 10px;
  color: rgb(255, 255, 255);
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: black;
  border-radius: 0 0 10px 10px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: yellow;
  font-weight: 500;
}

/* Skills Section */
.skills {
  background-color:#523a28;
  padding: 5rem 2rem;
}
.skills h2{
  color:#ffdd95;
}
.skills-container {
  max-width: 1100px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.skill-item {
  background: #ffdd95;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.skill-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, #ffffff, #f6f6f6);
}
.skill-item h3 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.skill-item p {
  color:black;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color:#3e2723;
  color: white;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-weight: 500;
}
.social-links a {
  color: white;
  margin-right: 1rem;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }
}

nav .nav-links .logo img {
  height: 50px;
  width: auto;
  display: block;
}
