/* --- [미디어베리 스타일] --- */

/* 1. 기본 설정 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } 
body { 
  font-family: '맑은 고딕', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Arial', sans-serif; 
  color: white; background-color: #222; overflow-x: hidden; word-break: keep-all;
}
a { text-decoration: none; color: inherit; }

/* 2. 네비게이션 */
nav {
  position: fixed; top: 0; width: 100%; display: flex;
  justify-content: space-between; align-items: center;
  padding: 25px 50px; z-index: 1000;
  background-color: #F74C90; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, padding 0.3s ease;
}
.logo-nav img { height: 35px; transition: height 0.3s ease; }
.menu { display: flex; list-style: none; }
.menu li { margin-left: 35px; }
.menu a {
  color: white; font-size: 1.1rem; font-weight: 600;
  letter-spacing: 1px; transition: color 0.3s; position: relative;
}
.menu a:hover { color: #fff0f0; }
.menu a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -5px; left: 50%; transform: translateX(-50%);
  background-color: #fff0f0; transition: width 0.3s ease-in-out;
}
.menu a:hover::after { width: 100%; }

/* 3. 섹션 공통 */
.page-section {
  width: 100%; min-height: 100vh; padding: 100px 40px;
  display: flex; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}

/* 4. 비디오 배경 섹션 */
.video-background-section { color: white; }
.background-video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%; width: auto; height: auto;
  z-index: 1; object-fit: cover;
}
.video-background-section .overlay {
  position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.2); z-index: 2;
}
.video-background-section .overlay.dark { background-color: rgba(0, 0, 0, 0.4); }
.video-background-section .container,
.video-background-section .center-content {
  position: relative; z-index: 3; width: 100%; text-align: center;
}

/* Home */
#home { padding: 0; }
#home .center-content { display: flex; flex-direction: column; align-items: center; max-width: 320px; }
#home .center-content img { width: 80%; max-width: 320px; height: auto; margin-bottom: 16px; }
#home .center-content .tagline {
  font-size: 1.8rem; font-weight: 700; letter-spacing: 3px;
  text-align: center; color: #fff0f0; text-transform: uppercase;
  line-height: 1.3; white-space: nowrap; 
}
#home .scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-20px) translateX(-50%); } 60% { transform: translateY(-10px) translateX(-50%); } }

/* We Offer */
#we-offer .container { max-width: 600px; line-height: 2.3; font-weight: 600; font-size: 1.6rem; padding: 20px; text-align: left;}
#we-offer .container p { margin: 1rem 0; position: relative; padding-left: 55px; opacity: 0; animation: fadeInUp 0.8s forwards; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
#we-offer .container p:nth-child(1) { animation-delay: 0.1s;} #we-offer .container p:nth-child(2) { animation-delay: 0.3s;} #we-offer .container p:nth-child(3) { animation-delay: 0.5s;} #we-offer .container p:nth-child(4) { animation-delay: 0.7s;} #we-offer .container p:nth-child(5) { animation-delay: 0.9s;}
#we-offer .container p::before { content: attr(data-letter); position: absolute; left: 0; bottom: 8px; font-size: 4rem; font-weight: 900; color: rgba(224, 247, 249, 0.8); font-family: 'Arial Black', Arial, sans-serif; letter-spacing: 7px; user-select: none; line-height: 1; text-shadow: none; }
#we-offer .container p span { display: inline-block; vertical-align: baseline; line-height: 1.1; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* About Us */
#about-us .container { max-width: 800px; padding: 40px 30px; line-height: 1.8; text-shadow: 0 0 10px rgba(0,0,0,0.9); }
#about-us .title-main { font-size: 5.7rem; text-align: center; color: #fff; font-weight: 700; line-height: 1.1; white-space: nowrap; margin-bottom: 12px; text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7), 0 0 30px rgba(0,0,0,0.6); }
#about-us .title-funfirst { font-size: 4.5rem; text-align: center; color: #fff; font-weight: 700; margin-bottom: 20px; text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7), 0 0 30px rgba(0,0,0,0.6); }
#about-us .subtitle { font-size: 1.8rem; margin-bottom: 35px; line-height: 1.6; text-align: center; text-shadow: 0 0 8px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 0, 0, 0.7); }
#about-us ul.features { list-style-type: none; padding-left: 0; font-size: 1.4rem; line-height: 1.8; text-shadow: 0 0 6px rgba(0, 0, 0, 0.75); text-align: left;}
#about-us ul.features li { margin-bottom: 18px; position: relative; padding-left: 20px; }
#about-us ul.features li::before { content: '•'; position: absolute; left: 0; top: 3px; color: #ff6b6b; font-size: 1.4rem; font-weight: 900; }

/* Portfolio */
#portfolio { background-color: #222222; flex-direction: column; padding-top: 100px; padding-bottom: 60px; }
#portfolio .tabs { display: flex; justify-content: center; background-color: #4db6ac; padding: 10px 0; width: 100%; flex-shrink: 0; align-items: center; }
#portfolio .tab { padding: 12px 25px; cursor: pointer; font-weight: 700; font-size: 1.2rem; border-bottom: 3px solid transparent; transition: border-color 0.3s ease, color 0.3s ease; color: #e0f2f1; user-select: none; }
#portfolio .tab.active { color: white; border-bottom: 3px solid #ff6b6b; }
#portfolio .portfolio-container { flex-grow: 1; max-width: 960px; margin: 20px auto 40px; overflow: hidden; position: relative; width: 100%; border-radius: 12px; }
#portfolio .slide-wrapper { display: flex; transition: transform 0.4s ease; height: auto; flex-direction: column; }
#portfolio .slide { min-width: 100%; padding: 20px 40px; height: auto; display: flex; flex-direction: column; gap: 20px; color: #eee; }
#portfolio .slide.ebs, #portfolio .portfolio-container.ebs { background-color: #2a4d69; }
#portfolio .slide.tvchosun, #portfolio .portfolio-container.tvchosun { background-color: #8a2c2c; }
#portfolio .slide.etc, #portfolio .portfolio-container.etc { background-color: #3b6a47; }
#portfolio .portfolio-item { background: rgba(0,0,0,0.25); border-radius: 8px; padding: 12px 20px; display: flex; align-items: center; gap: 20px; user-select: none; }
#portfolio .thumbnail-link { display: inline-block; border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; width: 240px; aspect-ratio: 16 / 9; background-color: #444; flex-shrink: 0; }
#portfolio .thumbnail-link:hover { box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.5); transform: scale(1.03); }
#portfolio .thumbnail-link img { width: 100%; height: 100%; object-fit: cover; }
#portfolio .details { flex: 1; }
#portfolio .title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
#portfolio .subtitle { font-size: 1rem; color: #ccc; }
#portfolio .arrow { width: 44px; height: 44px; position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.7); cursor: pointer; background: rgba(0,0,0,0.3); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 10; transition: all 0.3s ease; }
#portfolio .arrow:hover { color: white; background: rgba(0,0,0,0.6); }
#portfolio .arrow.left { left: 10px; } #portfolio .arrow.right { right: 10px; }

/* Contact Us */
#contact-us {
  background-image: url('image/Contactus_background.png');
  background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed;
}
#contact-us .contact-container { padding: 40px; max-width: 900px; text-align: center; }
#contact-us h1 { font-size: 3.5rem; margin-bottom: 30px; font-weight: 700; color: #3b2e5a; }
#contact-us .map-container { width: 100%; height: 400px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 15px rgba(90, 62, 137, 0.2); margin-bottom: 40px; }
#contact-us .contact-info { font-size: 1.5rem; line-height: 1.6; color: #ffffff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); margin-bottom: 12px; max-width: 600px; margin-left: auto; margin-right: auto; }
#contact-us .contact-info.email { margin-bottom: 0; }
#contact-us .contact-info a { color: #ffffff; text-decoration: none; font-weight: 600; }
#contact-us .contact-info a:hover { text-decoration: underline; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .page-section { padding: 80px 20px; }
    nav { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .logo-nav img { height: 30px; }
    .menu { padding: 0; } .menu li { margin: 0 10px; } .menu a { font-size: 0.9rem; letter-spacing: 0; } .menu a::after { display: none; }
    #home .center-content img { width: 70%; max-width: 240px; } #home .center-content .tagline { font-size: 1.3rem; white-space: normal; }
    #we-offer .container { font-size: 1.1rem; line-height: 1.8; } #we-offer .container p { padding-left: 40px; } #we-offer .container p::before { font-size: 2.5rem; bottom: 5px; }
    #about-us .container { padding: 30px 15px; } #about-us .title-main { font-size: 3rem; } #about-us .title-funfirst { font-size: 2.5rem; } #about-us .subtitle { font-size: 1.2rem; margin-bottom: 25px; } #about-us ul.features { font-size: 1rem; } #about-us ul.features li { margin-bottom: 12px; }
    #portfolio { padding-top: 140px; } #portfolio .tab { padding: 10px 15px; font-size: 1rem; } #portfolio .slide { padding: 15px; gap: 15px;} #portfolio .portfolio-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; } #portfolio .thumbnail-link { width: 100%; } #portfolio .details { margin-top: 5px; } #portfolio .title { font-size: 1.1rem; } #portfolio .subtitle { font-size: 0.9rem; } #portfolio .arrow { width: 36px; height: 36px; } #portfolio .arrow.left { left: 5px; } #portfolio .arrow.right { right: 5px; }
    #contact-us h1 { font-size: 2.5rem; } #contact-us .contact-container { padding: 20px; } #contact-us .map-container { height: 280px; margin-bottom: 30px; } #contact-us .contact-info { font-size: 1.1rem; }
}
@media (max-width: 480px) { .menu li { margin: 0 5px; } .menu a { font-size: 0.8rem; } }