/* [Design System: Modern White & Glass] */
:root {
  --bg-body: #f5f5f7; /* 애플 스타일의 웜 그레이 */
  --text-main: #1d1d1f;
  --text-sub: #86868b;
  --primary: #0071e3; /* 세련된 테크 블루 */
  --glass-white: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* [Scroll Animation] */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* [Header] Frosted Glass */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.3s;
}
.m-menu-toggle { display: none; }
.nav-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
max-width: 140px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
}
.nav-links a:hover {
  color: var(--primary);
}

/* [Hero Section] Typography Driven */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: url(../img/main.jpg);
  background-size: cover;
}

.hero .reveal {
  text-align: left;
  width: 100%;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #1d1d1f 30%, #5e5ce6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-sub);
  max-width: 600px;
  margin-bottom: 50px;
  font-weight: 400;
}

.hero-btn {
  padding: 18px 40px;
  background: #000;
  color: #fff;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.3s;
}
.hero-btn:hover {
  transform: scale(1.05);
}

/* [Section Layout] */
.section {
  padding: 100px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.section-header {
  margin-bottom: 80px;
}
.label {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}
.section-header h2 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

#work {
}

#work .grid-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}

#work .left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-gap: 16px;
}

.card {
  background: rgb(0, 0, 0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.card::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(#00000000, #00000069);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.card.large {
  grid-column: span 2;
  height: 650px;
}
.card.medium {
  padding: 2rem;
  height: 100%;
}
.card.medium:nth-child(1) {
  background: url(../img/work1.jpg) center;
}
.card.medium:nth-child(2) {
  background: url(../img/work2.jpg) center;
}
.card.medium:nth-child(3) {
  background: url(../img/work3.jpg) center;
}
.card.card.large {
  background: url(../img/work4.jpg) center;
  background-size: cover;
}

.card-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
}

.card-text h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.card-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* [Detailed List] */
.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 50px;
}
.d-item {
  background: rgb(241, 241, 241);
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
}
.d-item i {
  color: var(--primary);
}

/* slogan */
#slogan {
  padding: 50px;
  background: url(../img/slogan_bg.jpg) center;
  color: #fff;
  font-size: 19px;
}

#slogan b {
  color: yellow;
}

/* cs */
#cs {
  background: url(../img/cs_bg.jpg) center;
  background-size: cover;
  padding: 70px 0;
}
#cs .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
#cs .right {
  text-align: right;
}
/* [Services] Minimal Cards */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-item {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.s-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.service-item p {
  color: var(--text-sub);
  line-height: 1.6;
}

/* [Process] Horizontal Scroll-like */
.process-wrap {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  padding-top: 60px;
}
.p-step {
  width: 22%;
  position: relative;
}
.p-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  top: -30px;
  left: 0;
  z-index: -1;
  opacity: 0.2;
}
.p-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  padding-top: 20px;
}
.p-content p {
  font-size: 0.95rem;
  color: var(--text-sub);
}

/* [Contact Banner] */
.contact-banner {
  background: #1d1d1f;
  color: white;
  border-radius: 30px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 100px;
}
.contact-banner h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.contact-banner p {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-bottom: 40px;
}

/* Mobile */
@media (max-width: 768px) {

  .grid-container,
  .service-list {
    grid-template-columns: 1fr;
  }
  .card.large {
    height: 400px;
    grid-column: span 1;
  }
  .process-wrap {
    flex-direction: column;
    gap: 40px;
  }
  .p-step {
    width: 100%;
  }
  .nav-links {
    display: none;
  }
  .contact-banner {
    padding: 40px 20px;
  }
  .contact-banner h2 {
    font-size: 2rem;
  }

/* 1. 헤더 */
header { height: 60px; position: fixed; width: 100%; top: 0; z-index: 1000; }
    
    .nav-inner {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        padding: 0 15px;
        height: 100%;
        position: relative;
    }

    .m-menu-toggle {
        display: block; 
        padding: 5px 10px; border-radius: 4px;
        font-size: 0.85rem; font-weight: 700; color: #333;
        cursor: pointer;
    }

    /* 드롭다운 메뉴 스타일 */
    .nav-links {
        display: none; 
        position: absolute;
        top: 60px; left: 0; width: 100%;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-links.is-active {
        display: flex;
        grid-gap: 2px;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 20px;
        border-top: 1px solid #f9f9f9;
        font-size: 0.95rem;
        text-align: center;
    }

    /* 문의하기  */
    .m-btn-call {
        font-size: 0.8rem !important;
        font-weight: 700;
        background: #0071e3;
        color: #fff !important;
        padding: 6px 12px;
        border-radius: 4px;
    }

  /* 히어로  */
  .hero {
    height: 100vh;
    background-position-x:90%;
    background-attachment: scroll;
    padding: 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }

  /* 섹션 공통 간격 */
  .section {
    padding: 50px 20px;
  }
  .section-header h2 {
    font-size: 2rem;
  }

  /* 포트폴리오  */
  #work .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card.medium {
    height: 300px;
  }
  .card.large {
    grid-column: span 1;
    height: 400px;
  }

  .card.medium:nth-child(1) {
    background: url(../img/work1.jpg) center/cover;
  }
  .card.medium:nth-child(2) {
    background: url(../img/work2.jpg) center/cover;
  }
  .card.medium:nth-child(3) {
    background: url(../img/work3.jpg) center/cover;
  }
  .card.card.large {
    background: url(../img/work4.jpg) center/cover;
  }

  /* 상세 리스트  */
  .detail-list {
    gap: 10px;
  }
  .d-item {
    width: calc(50% - 5px); 
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  /* 제작 과정  */
  .process-wrap {
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
  }
  .p-step {
    width: 100%;
  }
  .p-num {
    font-size: 3rem;
    top: -20px;
  }

  #cs .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #cs .right {
    text-align: center;
  }
  #cs img {
    width: 100%;
  }

  /* 텍스트 조절 */
  #slogan {
    font-size: 16px;
    padding: 40px 30px;
    word-break: keep-all;
  }
  .card-text h3 {
    font-size: 1.5em;
  }
}
