html {
    height: 100%;
    scroll-behavior: smooth;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 80px; /* 히어로 섹션 하단에서 약간 위에 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.scroll-down-arrow:hover {
    opacity: 1;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: #000; /* 어두운 배경 */
}

/* 모든 섹션에 기본적으로 세로 여백을 부여 */
section {
    padding: 100px 20px;  /* 위아래 100px, 좌우 20px 패딩 (필요시 조정) */
    box-sizing: border-box;
}

/* 인증 페이지 컨테이너 */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    color: #222;
    box-sizing: border-box;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%; /* 로그인 박스 너비에 맞출 수 있도록 100% */
    box-sizing: border-box; /* 패딩과 보더 포함한 전체 너비 계산 */
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}


.auth-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #222;
}

.auth-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.auth-button {
    padding: 12px;
    background: #007bff;
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-button:hover {
    background: #0056b3;
}

.auth-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ------------------ 공통 / 데스크톱 스타일 ------------------ */

/* --------------------------------------------- */
/* 기존 데스크톱용 CSS는 그대로 둡니다 (수정 X) */
/* --------------------------------------------- */

/* 헤더 */
.header {
    background: #000;
    padding: 30px 0;
  }
  
  .header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  
    display: flex;
    align-items: center;
    position: relative; 
  }
  
  /* 로고 */
  .logo {
    display: flex;
    align-items: center;
  }
  .logo-img {
    height: 40px; 
    margin-right: 10px; 
  }
  .logo .brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
  }
  
  /* 메뉴 패널(데스크톱) */
  .menu-panel {
    display: flex;
    align-items: center;
    margin-left: auto; /* 로고 다음, 오른쪽 배치 */
  }
  
  /* 네비게이션: 데스크톱에서 절대 위치로 가운데 정렬 */
  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
  }
  .nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
  }
  .nav a:hover {
    text-decoration: underline;
  }
  
  /* 로그인 섹션: 데스크톱에서는 우측 */
  .login-section {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  .login-section .login-link {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
  }
  
  /* 언어 선택 */
  .language-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    cursor: pointer;
  }
  .language-selector .lang-current {
    color: #fff;
    display: flex;
    align-items: center;
  }
  .language-selector .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }
  .language-selector.active .lang-dropdown {
    display: block;
  }
  .language-selector .lang-dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
  }
  .language-selector .lang-dropdown a:hover {
    background-color: #f5f5f5;
  }
  
  /* 햄버거 버튼: 데스크톱에서는 숨김 */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
  }
  
  /* ---------------------------------- */
  /*      반응형(모바일) 수정/추가      */
  /* ---------------------------------- */
  @media (max-width: 768px) {
    /* menu-panel: 헤더 아래로 펼쳐지며, 가운데 정렬 */
    .menu-panel {
      display: none;              /* 기본 숨김 */
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;                  /* 헤더 바로 아래 */
      background: #000; 
      flex-direction: column;
      /* 수평 중앙 정렬을 위해 align-items: center 적용 */
      align-items: center;
      padding: 15px 20px;
      z-index: 9999; 
    }
  
    /* .open 상태가 되면 보임 */
    .menu-panel.open {
      display: flex;
    }
  
    /* nav: 세로 메뉴 + 가운데 정렬 */
    .nav {
      position: static; 
      transform: none;
      display: flex;
      flex-direction: column;
      align-items: center;       /* 가운데 정렬 */
      width: 100%;
    }
    .nav a {
      margin: 10px 0; 
      text-align: center;       /* 텍스트 중앙 정렬 */
      width: 100%;              /* 링크를 가로 100% 사용할지 여부는 취향 */
    }
  
    /* 로그인 섹션도 세로 + 가운데 정렬 */
    .login-section {
      margin-left: 0; 
      margin-top: 15px;
      display: flex;
      flex-direction: column;   /* 필요 시 세로 배치 */
      align-items: center;      /* 수평 중앙 */
    }
    .login-section .login-link {
      margin-left: 0;
      margin-top: 10px;         /* 세로 간격 */
    }
  
    /* 언어 선택도 가운데 정렬 */
    .language-selector {
      margin-top: 15px;
      margin-left: 0;
      text-align: center;
      align-self: center;       /* 부모가 flex container일 때 수평 중앙 가능 */
    }
  
    /* 햄버거 버튼: 모바일에서만 보임, 헤더 오른쪽 정렬 */
    .menu-toggle {
      display: block;
      margin-left: auto; 
    }
  }
  

/* 히어로 섹션 */
.hero {
    height: 95vh;
    background: url('https://via.placeholder.com/1920x1080?text=BG+Image') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* 어두운 오버레이 */
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-heading {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ccc;
}

.main-heading {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
}
.cta-button:hover {
    background: #0056b3;
}

/* intro 섹션 */
.intro-section {
    background: #222;  
    color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 기능강조 섹션 */
.features-section {
    background: #000; 
    color: #fff;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* 카드 사이 간격 */
    align-items: center;
}

.card {
    background: #111;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: left;
}

.small-heading {
    color: #4a90e2;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.feature-main-heading {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card .cta-button {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
}

.card .cta-button:hover {
    background: #357ab7;
}


.features-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.features-content {
    flex: 1;
    padding-right: 40px;
    text-align: left; 
}

.features-content .small-heading {
    color: #4a90e2;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.features-content .feature-main-heading {
    font-size: 2rem;
    margin-bottom: 20px;
}

.features-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.features-content .cta-button {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
}

.features-content .cta-button:hover {
    background: #357ab7;
}

.features-image {
    flex: 1;
    text-align: right; 
}

.features-image img {
    width: 300px;    /* 모든 이미지 동일 너비 */
    height: 300px;   /* 높이를 고정하거나 필요에 따라 조정 */
    object-fit: cover; /* 이미지 비율 유지하며 잘 맞추기 */
}

/* 파트너 섹션 */
.partner-section {
    background: #000;
    color: #fff;
    padding-top: 200px;
    padding-bottom: 200px;
    text-align: center;
}

.partner-section h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-logos img {
    max-height: 50px; 
    height: auto;
    filter: brightness(3); /* 로고에 적용했던 어두운 필터 제거 */
    filter: contrast(0.6);
    transition: transform 0.2s;
}
.partner-logos img:hover {
    filter: brightness(1);
}

/* 문의 섹션 */
.contact-section {
    background: #000;
    color: #fff;
    text-align: center;
    padding-top: 200px;
    padding-bottom: 200px;.header-container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center; /* 가운데 정렬로 변경 */
    }
}

.contact-section h2 {
    font-size: 4rem;
    margin-bottom: 100px;
}

.contact-section .cta-button {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 2rem;
    transition: background 0.2s;
}

.contact-section .cta-button:hover {
    background: #357ab7;
}

.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    font-size: 0.95rem;
    color: #fff;
    overflow: visible; /* 부모 요소에서 드롭다운이 잘리지 않도록 설정 */
}

.lang-current {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px; /* 이모지와 텍스트 간격 */
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.lang-current:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px); /* 드롭다운 간격 설정 */
    left: 0;
    display: none;
    background: #fff;
    color: #333;
    min-width: 120px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    visibility: hidden; /* 초기 상태는 숨김 */
}

/* active 클래스가 추가되면 드롭다운 표시 */
.language-selector.active .lang-dropdown {
    display: block;
    visibility: visible;
}

/* 드롭다운 항목 스타일 */
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 6px; /* 이모지와 텍스트 간격 */
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.lang-dropdown a:hover {
    background-color: #f2f2f2;
}

/* (선택) 페이드인 애니메이션 */
.language-selector.active .lang-dropdown {
    animation: dropdownFadeIn 0.2s forwards;
}

@keyframes dropdownFadeIn {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.preserve-line {
    white-space: pre-line;
}

/* 하단 섹션 */
.footer {
    background: #000;
    position: relative;
    height: 200px; 
    width: 100%;
    color: #fff;
    overflow: hidden; /* 요소가 넘칠 경우 처리 */
}

/* 중앙에 큰 X 로고 표시 */
.footer-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem; 
    font-weight: bold;
    color: #ccc;
    z-index: 1; /* 로고를 다른 요소 위에 표시 */
    transition: font-size 0.3s ease; /* 부드러운 크기 전환 효과 */
}

/* 로고가 이미지인 경우 */
.logo-img {
    max-height: 80px;
    width: auto;
    transition: max-height 0.3s ease;
}

/* 하단 중앙 정렬된 저작권 문구 */
.footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #fff;
    width: 90%; /* 모바일에서 너무 좁아지지 않도록 */
    text-align: center;
    transition: bottom 0.3s ease, font-size 0.3s ease;
}

/* 태블릿 반응형 */
@media (max-width: 768px) {
    .footer {
        height: 180px; /* 약간 높이 줄임 */
    }
    
    .footer-logo {
        font-size: 3.5rem; /* 로고 크기 줄임 */
    }
    
    .logo-img {
        max-height: 70px;
    }
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .footer {
        height: 150px; /* 더 높이 줄임 */
    }
    
    .footer-logo {
        font-size: 3rem; /* 로고 크기 더 줄임 */
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        bottom: 15px;
    }
}

/* 매우 작은 모바일 화면 */
@media (max-width: 320px) {
    .footer {
        height: 130px;
    }
    
    .footer-logo {
        font-size: 2.5rem;
    }
    
    .logo-img {
        max-height: 40px;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
        bottom: 10px;
    }
}