/**
* CSS file to hold styles that apply across the application
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Montserrat:wght@200;400;600;800&display=swap");

/* 짙은 파란색 팔레트 - 전역 */
:root {
    --primary-blue: #1e3a8a;      /* 짙은 파란색 */
    --primary-blue-dark: #1e40af; /* 더 진한 파란색 */
    --primary-blue-light: #3b82f6; /* 밝은 파란색 */
    --bg-gray: #f3f4f6;           /* 배경 회색 */
    --card-white: #ffffff;        /* 카드 배경 */
    --border-gray: #d1d5db;       /* 테두리 회색 */
    --text-dark: #1f2937;         /* 진한 텍스트 */
    --text-gray: #6b7280;         /* 회색 텍스트 */
    
    /* 기존 변수 오버라이드 */
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #1e40af;
    --text-color: #1f2937;
    --bg-light: #f3f4f6;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-dark);
}

div#main {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-gray);
}

section {
  position: relative;
}

section.dark {
  min-height: 100vh;
  color: white;
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

section.light {
  color: var(--text-dark);
  background: var(--card-white);
  padding: 8rem 0;
}

section img.background {
  width: 100vmax;
  height: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  pointer-events: none;
  object-fit: cover;
  opacity: 0.1;
}

h1 {
  font-weight: 300;
  font-family: "Cormorant Garamond", serif;
  font-size: 7rem;
  margin: 0;
  color: var(--primary-blue-dark);
}

@media screen and (max-width: 300px) {
  h1 {
    font-weight: 300;
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    margin: 0;
  }
}

@media screen and (min-width: 301px) and (max-width: 360px) {
  h1 {
    font-weight: 300;
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
    margin: 0;
  }
}

@media screen and (min-width: 361px) and (max-width: 420px) {
  h1 {
    font-weight: 300;
    font-family: "Cormorant Garamond", serif;
    font-size: 5rem;
    margin: 0;
  }
}

h2 {
  font-weight: 400;
  font-size: 2rem;
  margin: 0;
  text-align: center;
  color: var(--primary-blue);
}

h3 {
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary-blue);
}

p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: 300;
  color: var(--text-dark);
}

p.large {
  font-size: 24px;
}

p.small {
  font-size: 15px;
}

hr {
  margin: 2.5rem;
  border-color: var(--border-gray);
}

li {
  line-height: 1.7;
}

li::marker {
  color: var(--primary-blue);
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue-light);
}

.portfolio-container {
  display: flex;
  flex-direction: row;
  padding-top: 3rem;
}

@media screen and (max-width: 420px) {
  .portfolio-container {
    flex-direction: column;
  }
}

.portfolio-hero {
  max-width: 40%;
  align-self: center;
}

@media screen and (max-width: 420px) {
  .portfolio-hero {
    max-width: 100%;
    align-self: center;
  }
}

.container {
  margin: 20px auto;
  display: grid;
  grid-template-columns: 330px 300px;
  grid-gap: 20px;
}

@media screen and (max-width: 420px) {
  .container {
    margin: 20px auto;
    display: inline;
    grid-template-columns: 330px 300px;
    grid-gap: 20px;
  }
}

.container .box {
  border-radius: 10px;
  padding: 24px 16px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  border: 2px solid var(--primary-blue);
  text-align: center;
  background: var(--card-white);
  transition: all 0.3s ease;
}

.container .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

img.social-icon {
  width: 30px;
  height: 30px;
}

#blazor-error-ui {
    background: var(--primary-blue-light);
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--bg-gray);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--primary-blue);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--primary-blue);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* 전체 사이트 스타일 */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-gray);
}

.section-title {
    color: var(--primary-blue-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
}

.research-highlight {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

/* 버튼 스타일 */
button, .btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

button:hover, .btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* 카드 스타일 */
.card {
    background: var(--card-white);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.15);
    transform: translateY(-4px);
}

/* 입력 폼 */
input, textarea, select {
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* Contact & Join 버튼 섹션 */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', serif;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 180px;
  text-align: center;
}

.btn-cta span {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: white;
  color: var(--primary-blue-dark);
  border: 2px solid white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-blue-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 반응형 */
@media screen and (max-width: 768px) {
  .cta-section {
      padding: 4rem 1.5rem;
  }

  .cta-section h2 {
      font-size: 2rem;
  }

  .cta-subtitle {
      font-size: 1rem;
      margin-bottom: 2rem;
  }

  .cta-buttons {
      flex-direction: column;
      gap: 1rem;
  }

  .btn-cta {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
  }
}

