/* 기본 설정 */
:root {
  --primary-color: #000;    /* 주로 사용하는 검정색 */
  --secondary-color: #fff;  /* 흰색 */
  --accent-color: #555;     /* 회색 계열 */
  --highlight-color: #007bff; /* 포인트 색상 */
  --text-color: #fff;
  --black-bg: #111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #1a1a1a;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header & Navigation */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  color: var(--secondary-color);
  border-bottom: 1px solid white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header.scrolled {
  background-color: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-bottom: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.header.scrolled .logo a {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-size: 18px;
  font-weight: 400;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.header.scrolled .nav-links a {
  color: var(--secondary-color);
}

.nav-links a:hover {
  color: var(--highlight-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: url('https://via.placeholder.com/1920x1080/000000/FFFFFF?text=PLAIUM+Innovative+Solutions') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--secondary-color);
  min-height: 100vh;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}

/* 새로 추가된 로고 이미지 스타일 */
.hero-content p {
  font-size: 2em;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-scroll-down {
  display: inline-block;
  color: var(--secondary-color);
  font-size: 3em;
  margin-top: 50px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

/* Sections General Styling */
.section {
  padding: 100px 0;
  text-align: center;
}

.section h2 {
  font-size: 3em;
  margin-bottom: 60px;
  font-weight: 700;
  color: var(--text-color);
}

.section p {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.about-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
}

.about-item h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.about-item p {
  font-size: 1em;
  margin-bottom: 0;
  color: var(--accent-color);
  max-width: none;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-item {
  background-color: var(--secondary-color);
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-item .icon-large {
  font-size: 3.5em;
  color: var(--highlight-color);
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-item p {
  font-size: 1em;
  color: var(--accent-color);
  max-width: none;
  margin-bottom: 0;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.portfolio-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.portfolio-item h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.portfolio-item p {
  font-size: 0.95em;
  color: var(--accent-color);
  margin: 0 20px 20px 20px;
  max-width: none;
}

/* Contact Section */
.contact-info p {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info p .fas {
  margin-right: 10px;
  color: var(--highlight-color);
}

.contact-form {
  max-width: 600px;
  margin: 50px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  font-family: 'Noto Sans KR', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--highlight-color);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--highlight-color);
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  padding: 30px;
  text-align: center;
  color: #aaa;
  font-size: 0.9em;
}

/* Appended */
.logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
}

.hamburger-menu {
  display: none; /* PC 버전에서는 숨김 */
}

#intro-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#intro-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  z-index: 0;
}

.section {
  padding: 100px 20px;
  text-align: center;
  background-color: #1a1a1a;
}

.section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.section p {
  font-size: 1.1em;
  line-height: 1.8;
}

.about-logo {
  width: 25%;
  margin: 0 auto 30px;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.about-img-wrapper {
  background-color: white;
  padding: 2px;
  border-radius: 14px;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.games-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.games-text {
  flex: 1 1 400px;
  max-width: 500px;
  color: white;
  text-align: left;
}

.games-visual {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.games-visual img {
  width: 100%;
  max-width: 450px;
}

.games-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}

.games-buttons img {
  height: 50px;
  border-radius: 0;
}

/* PROJECT P 전용 */
.projectp-section {
  background-color: #1a1a1a;
  padding: 100px 20px;
}

.projectp-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.projectp-text {
  flex: 1 1 400px;
  max-width: 500px;
  color: white;
  text-align: left;
}

.projectp-text h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.projectp-text h3 {
  color: #00bfff;
  font-weight: 700;
  margin-bottom: 30px;
}

.projectp-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 60px;
}

.projectp-text .coming {
  font-size: 1.3em;
  font-weight: bold;
  color: white;
}

.projectp-logo {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.projectp-logo img {
  width: 100%;
  max-width: 250px;
}

/* RECRUIT 섹션 */
#recruit {
  padding: 100px 20px;
  background-color: #1a1a1a;
}

.recruit-img-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.recruit-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}


/* Responsive Design - 768px 이하 */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }

  .header {
    padding: 10px 0; /* 모바일 버전 상하 여백 줄임 */
  }

  .navbar {
    padding: 0 20px; /* 모바일 버전 좌우 여백 20px */
  }

  .logo img {
    height: 35px; /* 모바일 버전 로고 크기 줄임 */
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 55px; /* 햄버거 메뉴가 나타날 위치 조정 */
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0; /* 링크 간격 제거 */
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    transition: all 0.3s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px; /* 모바일 버전 폰트 크기 줄임 */
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hamburger-menu {
    display: flex; /* 모바일 버전에서만 보임 */
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
  }

  .hero-content p {
    font-size: 1.1em;
  }

  .section {
    padding: 70px 0;
  }

  .section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
  }

  .section p {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .about-item, .service-item, .portfolio-item {
    margin-bottom: 20px;
  }

  .portfolio-item img {
    height: 200px;
  }

  .games-text, .games-visual {
    text-align: center;
  }

  .games-container {
    flex-direction: column;
  }

  .projectp-container {
  flex-direction: column;
  text-align: center;
  }

  .projectp-text {
  text-align: center;
  }
}
