* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: system-ui, "Inter", sans-serif;
}

body {
	overscroll-behavior: none;
	background: #fff291; /* 기본 배경색 - PC와 모바일 공통 */
	color: #333;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	position: relative !important;
	font-size: 16px; /* 기본 폰트 크기 */
	line-height: 1.5; /* 가독성을 위한 줄 간격 */
	word-wrap: break-word; /* 긴 단어 줄바꿈 */
	hyphens: auto; /* 하이픈 자동 삽입 */
}

.container {
	position: absolute;
	top: 0;
	z-index: 10;
}

.header {
	padding: 4em;
	opacity: 0.75;
}

.header h1 {
	width: 60%;
	/* color: #fff; */
	color: #333;
	font-weight: 600;
	font-size: 3em;
	letter-spacing: -1px;
	line-height: 1;
	margin-bottom: 20px;
}

.header a {
	display: inline-block;
	text-decoration: none;
	padding: 0.75em 1em;
	/* color: #fff; */
	color: #333;
	/* border: 1px solid #fff; */
	border: 1px solid #333;
	border-radius: 10px;
}

/* .glassy-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255 255 255 / 0.05);
	backdrop-filter: blur(32px);
	pointer-events: none;
} */

body, html {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-width: 0;
  height: auto;
  position: relative !important;
}

/* body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #333;
  background-color: #000000;
  margin: 0;
  padding: 0;
} */

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* New styles for the main layout container */
.main-layout {
  display: flex;
  align-items: stretch; /* Make both boxes same height */
  justify-content: space-between; /* Distributes space between content and sidebar */
  gap: 20px; /* Space between content and sidebar */
  max-width: 1300px; /* Adjust as needed for overall width */
  margin: 40px auto; /* Centers the layout block on the page */
  padding: 0 15px; /* Optional padding for the layout container */
  box-sizing: border-box;
}

.content {
  position: relative;
  z-index: 1;
  /* width: 100%; */ /* Flex properties will manage width distribution */
  height: auto;
  display: flex; /* This is for children of .content */
  flex-direction: column; /* For children of .content */
  justify-content: flex-start; /* For children of .content */
  align-items: center; /* For children of .content */
  
  max-width: 1100px; /* Existing constraint, content won't grow beyond this */
  /* margin: 40px auto; */ /* Replaced by flex alignment and parent margin */
  margin: 0; /* Reset margin as it's now a flex item */
  
  padding: 20px;
  /* background: rgba(255, 255, 255, 0.3); */ /* 30% 투명도 */
  background: transparent;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  
  flex: 2 1 0%; /* Grow twice as much as sidebar, basis 0 to distribute available space */
  box-sizing: border-box; /* Ensures padding/border are included in width/height */
}

/* Desktop styles for the YouTube sidebar */
.youtube-sidebar {
  flex: 1 1 0%; /* Grow relative to content, basis 0 */
  max-width: 450px; /* Prevent sidebar from becoming too wide */
  /* background: rgba(255, 255, 255, 0.3); */ /* 30% 투명도 */
  background: transparent;
  border-radius: 0;
  padding: 20px;
  box-sizing: border-box;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); */
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  /* Height will now match the content box due to align-items: stretch */
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #333333;
  text-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 24px;
}

/* #clock 스타일 제거 (불필요한 요소) */

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.social-button {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  /* border: 1px solid #fff; */
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.social-button i {
  margin-right: 8px;
  font-size: 1.2em;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.youtube {
  background: linear-gradient(45deg, #FF0000, #FF4444);
}

.instagram {
  background: linear-gradient(45deg, #833AB4, #FD1D1D, #F77737);
}

.twitter {
  background: linear-gradient(45deg, #1DA1F2, #89CFF0);
}

/* Navigation Menu - Clean Style */
.nav-menu {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.nav-menu li {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.nav-menu li a {
  color: #1a237e; /* 남색(Deep Navy)으로 변경 */
  padding: 0 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:active,
.nav-menu a.active,
.nav-menu a.clicked {
  color: #3949ab; /* hover/active 시 좀 더 밝은 남색 */
}

/* 言語切り替えエリアのスタイル */
.language-switcher {
  position: relative;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin: 0 auto;
  gap: 10px;
  /* background: rgba(255, 255, 255, 0.9); */
  /* -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px); */
  padding: 10px 15px;
  border-radius: 25px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); */
  z-index: 1001;
}

.language-label {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

/* Toggle Switch のスタイル */
.switch {
 --button-width: 3.5em;
 --button-height: 2em;
 --toggle-diameter: 1.5em;
 --button-toggle-offset: calc((var(--button-height) - var(--toggle-diameter)) / 2);
 --toggle-shadow-offset: 10px;
 --toggle-wider: 3em;
 --color-grey: #cccccc;
 --color-green: #4296f4;
}

.slider {
 display: inline-block;
 width: var(--button-width);
 height: var(--button-height);
 background-color: var(--color-grey);
 border-radius: calc(var(--button-height) / 2);
 position: relative;
 transition: 0.3s all ease-in-out;
}

.slider::after {
 content: "";
 display: inline-block;
 width: var(--toggle-diameter);
 height: var(--toggle-diameter);
 background-color: #fff;
 border-radius: calc(var(--toggle-diameter) / 2);
 position: absolute;
 top: var(--button-toggle-offset);
 transform: translateX(var(--button-toggle-offset));
 box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
 transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
 background-color: var(--color-green);
}

.switch input[type="checkbox"]:checked + .slider::after {
 transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
 box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}

.switch input[type="checkbox"] {
 display: none;
}

.switch input[type="checkbox"]:active + .slider::after {
 width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
 transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
}

/* モバイル対応 - 言語切り替えボタン */
@media (max-width: 600px) {
 .language-switcher {
 top: 10px;
 right: 10px;
 padding: 8px 12px;
 gap: 8px;
 }
 
 .language-label {
 font-size: 12px;
 }
 
 .switch {
 --button-width: 3em;
 --button-height: 1.8em;
 --toggle-diameter: 1.3em;
} 
}

/* Profile image - No blur, clean display */
#profile-container {
  cursor: pointer;
  transition: transform 0.3s ease;
}

#profile-container img {
  /* 블러 효과 제거 - 이미지가 그대로 보이도록 */
  transition: transform 0.3s ease;
}

/* Password modal for profile */
#password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#password-modal.active {
  display: flex;
}

#password-modal .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

#password-modal input {
  padding: 8px;
  font-size: 1rem;
  margin-top: 10px;
}

#password-modal button {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 1rem;

}

/* =====================
 PC(데스크탑) 스타일
 ===================== */

@media (max-width: 768px) {
 .nav-menu ul {
 flex-direction: column;
 }
 
 .nav-menu a {
 padding: 10px;
 width: 100%;
 text-align: center;
 }
}

@media (max-width: 600px) {
 body {
 font-size: 15px;
 min-width: 0;
 overflow-x: hidden;
 }
 .main-layout {
 flex-direction: column;
 gap: 0;
 padding: 0 0.5rem;
 }
 .content {
 width: 100%;
 height: auto;
 padding: 0;
 align-items: stretch;
 justify-content: flex-start;
 }
 .youtube-sidebar {
 max-width: 100%;
 min-width: 0;
 margin: 1.5rem 0 0 0;
 padding: 1rem 0.5rem;
 }
 .youtube-videos iframe {
 height: 160px;
 }
 .youtube-section-title {
 font-size: 1rem;
 margin-bottom: 0.5rem;
 }
 .nav-menu ul {
 flex-direction: column;
 gap: 0;
 }
 .nav-menu a {
 padding: 10px;
 width: 100%;
 text-align: center;
 font-size: 1rem;
 }
 
 .nav-menu a:active,
 .nav-menu a.active {
 color: #4fc3f7;
 }
 
 .nav-menu a.clicked {
 color: #4fc3f7;
 transform: scale(1.02);
 }
 h1 {
 font-size: 1.3rem;
 }
 p {
 font-size: 1rem;
 margin-bottom: 16px;
 }
 #clock {
 font-size: 3rem;
 }
 .social-links {
 flex-direction: column;
 gap: 10px;
 margin-top: 20px;
 }
 .social-button {
 width: 100%;
 justify-content: center;
 font-size: 1rem;
 padding: 10px 0;
 }
}

/* 메인 레이아웃 */
.main-layout {
 display: flex;
 align-items: stretch; /* Make both boxes same height */
 justify-content: center;
 gap: 2rem;
 max-width: 1200px;
 margin: 0 auto;
}

.content {
 flex: 2;
}

.youtube-sidebar {
 flex: 1;
 background: #fff;
 border-radius: 12px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.07);
 padding: 1.5rem 1rem;
 min-width: 320px;
 max-width: 350px;
 display: flex;
 flex-direction: column;
 /* Height will now match the content box due to align-items: stretch */
}
.youtube-sidebar h2 {
 font-size: 1.2rem;
 margin-bottom: 1rem;
 color: #c4302b;
 text-align: center;
}
.youtube-videos {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}
.youtube-videos iframe {
 border-radius: 8px;
 background: #000;
}
.youtube-more {
 display: block;
 margin: 1.2rem auto 0 auto;
 text-align: center;
 color: #fff;
 background: #c4302b;
 padding: 0.5rem 1.2rem;
 border-radius: 6px;
 font-weight: 600;
 text-decoration: none;
 transition: background 0.2s;
 width: fit-content;
}
.youtube-more:hover {
 background: #a7281a;
}

.youtube-section-title {
 font-size: 1.1rem;
 font-weight: 700;
 color: #222;
 margin-bottom: 0.7rem;
 text-align: left;
 letter-spacing: 0.02em;
}

@media (max-width: 900px) {
 .main-layout {
 flex-direction: column;
 align-items: stretch;
 }
 .youtube-sidebar {
 max-width: 100%;
 min-width: 0;
 margin-top: 2rem;
 }
}

#site-overlay {
 position: fixed;
 z-index: 9999;
 top: 0; left: 0; right: 0; bottom: 0;
 width: 100vw;
 height: 100vh;
 background: #4fc3f7; /* 하늘색 */
 transition: transform 1.2s cubic-bezier(0.77,0,0.175,1), opacity 1.2s cubic-bezier(0.77,0,0.175,1);
 transform: translateX(0);
 opacity: 1;
 pointer-events: none;
}
#site-overlay.hide {
 transform: translateX(100vw);
 opacity: 0;
}

/* 音楽リストのスタイル */
.music-list {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 32px;
 max-width: 1440px;
 margin: 30px auto;
 padding: 0 40px;
}

.music-box-wrapper {
 position: relative;
 cursor: pointer;
 overflow: hidden;
 border-radius: 12px;
 transition: transform 0.3s ease;
}

.music-box-wrapper:hover {
 transform: translateY(-4px);
}

.music-card {
 position: relative;
 background: #fff;
 border-radius: 16px;
 overflow: hidden;
 box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-box-wrapper:hover .music-card {
 transform: translateY(-8px) scale(1.02);
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.album-art {
 width: 100%;
 height: auto;
 aspect-ratio: 1 / 1;
 object-fit: cover;
}

.music-info {
 padding: 16px;
}

.song-title {
 font-size: 18px;
 font-weight: 600;
 margin: 0;
 color: #111;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.artist {
 font-size: 16px;
 color: #666;
 margin-top: 4px;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.play-overlay {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 opacity: 0;
 background: rgba(0, 0, 0, 0.5);
 width: 48px;
 height: 48px;
 border-radius: 24px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: opacity 0.3s ease;
}

.play-overlay .fa-play {
 color: #fff;
 font-size: 20px;
}

.music-box-wrapper:hover .play-overlay {
 opacity: 1;
}

/* Social Share Buttons - Transparent Design with SVG Only */
.social-share {
    display: flex;
    justify-content: space-between;
    min-width: 200px;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    list-style: none;
}

.social-share li {
    flex: 1;
}
    
.social-share a > div {
    position: absolute;
    width: 100%;
    height: 100%;
    left: -100%;
    z-index: 1;
    transition: left 0.3s ease;
    background: transparent;
}

.social-share a {
    display: block;
    overflow: visible;
    position: relative;
    padding: 15px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    border-radius: 0;
}

.social-share a:hover > div {
    left: 0;
}

.social-share a svg {
    position: relative;
    height: 30px;
    width: 50px;
    z-index: 5;
    fill: #fff;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-share a:hover svg {
    fill: #ccc;
    transform: scale(1.1);
}

.social-share a.twitter > div {
    background: transparent;
}

.social-share a.youtube > div {
    background: transparent;
}

.social-share a.instagram > div {
    background: transparent;
}

/* Responsive Breakpoints */
@media only screen and (max-width: 1200px) {
 .music-list {
 grid-template-columns: repeat(3, 1fr);
 }
}

@media only screen and (max-width: 768px) {
 .music-list {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media only screen and (max-width: 480px) {
 .music-list {
 grid-template-columns: 1fr;
 }
}

/* Screen reader accessibility */
.screen-reader-text {
	overflow: hidden;
	position: absolute;
	height: 1px;
	width: 1px;
    clip: rect(1px, 1px, 1px, 1px);
}

/* ===========================
   반응형 웹 기본 설정
   =========================== */

/* 모든 텍스트 요소에 대한 오버플로우 방지 */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, label {
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: keep-all; /* 한글 단어 유지 */
  line-height: 1.5;
}

/* 비전 섹션 텍스트 특별 처리 */
.intro-mission__text p {
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* 모바일에서 비전 섹션 최적화 */
@media (max-width: 768px) {
  .intro-mission {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 15px !important;
    margin: 40px 0 !important;
  }
  
  .intro-mission__text {
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }
  
  .intro-mission__text h2 {
    font-size: 1.8rem !important;
    margin-bottom: 0.8rem !important;
    word-break: keep-all !important;
    line-height: 1.3 !important;
  }
  
  .intro-mission__text p {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
    padding: 0 10px !important;
    white-space: normal !important;
  }
  
  .intro-mission__img {
    display: none !important;
  }
}

/* 컨테이너 요소들의 반응형 설정 */
.main-layout, .content, .about-me-section, .skills-section, 
.hero-section, .intro-section, .card-carousel-section {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-left: clamp(10px, 3vw, 40px);
  padding-right: clamp(10px, 3vw, 40px);
}

/* 이미지 반응형 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 테이블 반응형 */
table {
  width: 100%;
  table-layout: fixed;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

/* 버튼 반응형 */
button, .btn, .social-button {
  min-height: 44px; /* 터치 친화적인 최소 높이 */
  min-width: 44px;
  padding: clamp(8px, 2vw, 16px) clamp(12px, 3vw, 24px);
  font-size: clamp(14px, 2.5vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 입력 필드 반응형 */
input, textarea, select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px; /* iOS 줌 방지 */
  padding: clamp(8px, 2vw, 12px);
}

/* 폰트 크기 반응형 */
.shin-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  text-align: center;
  margin-bottom: clamp(16px, 4vw, 32px);
  word-break: keep-all;
}

/* 반응형 텍스트 스타일 */
.since-date {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #666;
  margin-top: -20px;
  margin-bottom: clamp(20px, 5vw, 40px);
  font-family: 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
  word-break: keep-all;
  white-space: nowrap; /* 날짜가 두 줄로 나뉘지 않도록 */
}

.mindset-text {
  text-align: center;
  margin-bottom: clamp(20px, 5vw, 30px);
  padding: 0 clamp(15px, 4vw, 20px);
}

.mindset-text p {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: #333;
  line-height: 1.6;
  font-family: 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
  margin-bottom: 15px;
  word-break: keep-all;
}

.shortcut-button-container {
  display: flex;
  justify-content: center;
  margin: clamp(15px, 4vw, 20px) 0;
}

.ruskchat-button {
  display: inline-block;
  padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 24px);
  background: linear-gradient(45deg, #30286d, #69EACB);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 84, 241, 0.3);
  word-break: keep-all;
  white-space: nowrap;
}

.ruskchat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 84, 241, 0.4);
}

.ruskchat-button i {
  margin-right: 8px;
}

/* 프로필 컨테이너 반응형 */
.profile-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(250px, 30vh, 320px);
  margin: clamp(30px, 8vw, 40px) 0;
}

#profile-container {
  width: clamp(150px, 20vw, 200px);
  height: clamp(150px, 20vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 40px);
  max-height: calc(100vw - 40px);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 섹션 로딩 상태 */
.loading-placeholder {
  text-align: center;
  padding: clamp(30px, 8vw, 40px);
  color: #666;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* 패스워드 에러 */
.password-error {
  color: red;
  display: none;
}

/* 컨텐츠 마진 */
.content-main {
  margin-top: 90px;
}

/* Glassmorphism for .skills-section (勉強中) */
.skills-section {
  background: rgba(255, 255, 255, 0.75); /* 덜 투명하게 */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 1.5rem 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.skills-section:hover {
  box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.22);
  transform: translateY(-6px) scale(1.015);
}

.skills-header h2 {
  color: #333;
  text-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.skill-category {
  background: rgba(255, 255, 255, 0.75); /* 덜 투명하게 */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 18px;
  border: 1.2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.skill-category:hover {
  box-shadow: 0 10px 32px 0 rgba(31, 38, 135, 0.18);
  transform: translateY(-3px) scale(1.01);
}

.skill-category h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Animated Gradient Skill Tags */
.skill-tag {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 15px;
  color: #fff;
  font-weight: 500;
  margin: 0.25em;
  transition: transform 0.2s ease;
  border: none;
  background-size: 200% 200%;
  animation: gradient-animation 4s ease infinite;
}

.skill-tag:hover {
  transform: scale(1.1);
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Specific Gradients for each skill */
.skill-tag.ts {
  background-image: linear-gradient(45deg, #3178c6, #4a90e2, #63a4ff);
}

.skill-tag.html {
  background-image: linear-gradient(45deg, #e34f26, #f16529, #f77737);
}

.skill-tag.css {
  background-image: linear-gradient(45deg, #1572b6, #268fc9, #3aa9e0);
}

.skill-tag.js {
  background-image: linear-gradient(45deg, #f7df1e, #f0db4f, #ebd234);
  color: #000; /* Black text for better contrast on yellow */
}

.skill-tag.react {
  background-image: linear-gradient(45deg, #61dafb, #78e3fc, #8efaff);
  color: #000; /* Black text for better contrast */
}

.skill-tag.python {
  background-image: linear-gradient(45deg, #3776ab, #3c89c7, #429de4);
}

.skill-tag.swift {
    background-image: linear-gradient(45deg, #ffac45, #f89d2d, #f08a00);
}

.skill-tag.kotlin {
    background-image: linear-gradient(45deg, #7f52ff, #a87ee8, #c9a9ff);
}

.skill-tag.java {
    background-image: linear-gradient(45deg, #007396, #5382a1, #b0711c);
}

.skill-tag.notion {
    background-image: linear-gradient(45deg, #000000, #333333, #555555);
}

.skill-tag.git {
    background-image: linear-gradient(45deg, #f05033, #f16a54, #f38d7d);
}

.skill-tag.docker {
    background-image: linear-gradient(45deg, #2496ed, #38a9f0, #52c0f4);
}

.skill-tag.aws {
    background-image: linear-gradient(45deg, #ff9900, #ffad33, #ffc266);
}

.skill-tag.gcp {
    background-image: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

.skill-tag.figma {
    background-image: linear-gradient(45deg, #f24e1e, #a259ff, #1abcfe, #0acf83, #ff7262);
}

/* 새로운 기술 태그 스타일 */
.skill-tag.nextjs {
    background-image: linear-gradient(45deg, #000000, #333333, #666666);
}

.skill-tag.typescript {
    background-image: linear-gradient(45deg, #3178c6, #4a90e2, #63a4ff);
}

.skill-tag.tailwind {
    background-image: linear-gradient(45deg, #06b6d4, #0891b2, #0e7490);
}

.skill-tag.fastapi {
    background-image: linear-gradient(45deg, #009688, #00bcd4, #00e5ff);
}

.skill-tag.sql {
    background-image: linear-gradient(45deg, #336791, #4a7c9b, #5f8ba5);
}

.skill-tag.uvicorn {
    background-image: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffb1b1);
}

.skill-tag.postgresql {
    background-image: linear-gradient(45deg, #336791, #4a7c9b, #5f8ba5);
}

.skill-tag.sqlite {
    background-image: linear-gradient(45deg, #003b57, #004d6a, #005f7d);
}

.skill-tag.alembic {
    background-image: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffb1b1);
}

.skill-tag.railway {
    background-image: linear-gradient(45deg, #0b0d0e, #1a1d1e, #292d2e);
}

.skill-tag.vercel {
    background-image: linear-gradient(45deg, #000000, #333333, #666666);
}

/* ===========================
   햄버거 메뉴 스타일
   =========================== */

/* 햄버거 버튼 */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  background: none;
  border: none;
  color: #1a237e;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.3s ease;
  min-height: 36px;
}

.hamburger-btn:hover {
  color: #3949ab;
  background-color: rgba(26, 35, 126, 0.1);
}

.more-text {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: lowercase;
  line-height: 1.4rem;
  display: flex;
  align-items: center;
}

.hamburger-icon {
  font-size: 1.4rem;
  line-height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 사이드 메뉴 오버레이 */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 사이드 메뉴 */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.side-menu.active {
  right: 0;
}

/* 사이드 메뉴 헤더 */
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.side-menu-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a237e;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1a237e;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #3949ab;
}

/* 사이드 메뉴 리스트 */
.side-menu-list {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  overflow-y: auto;
  height: calc(100% - 80px);
}

.side-menu-list li {
  margin: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-menu.active .side-menu-list li {
  opacity: 1;
  transform: translateX(0);
}

/* 순차적 애니메이션을 위한 지연 */
.side-menu.active .side-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.side-menu.active .side-menu-list li:nth-child(2) { transition-delay: 0.15s; }
.side-menu.active .side-menu-list li:nth-child(3) { transition-delay: 0.2s; }
.side-menu.active .side-menu-list li:nth-child(4) { transition-delay: 0.25s; }
.side-menu.active .side-menu-list li:nth-child(5) { transition-delay: 0.3s; }
.side-menu.active .side-menu-list li:nth-child(6) { transition-delay: 0.35s; }
.side-menu.active .side-menu-list li:nth-child(7) { transition-delay: 0.4s; }
.side-menu.active .side-menu-list li:nth-child(8) { transition-delay: 0.45s; }
.side-menu.active .side-menu-list li:nth-child(9) { transition-delay: 0.5s; }
.side-menu.active .side-menu-list li:nth-child(10) { transition-delay: 0.55s; }
.side-menu.active .side-menu-list li:nth-child(11) { transition-delay: 0.6s; }
.side-menu.active .side-menu-list li:nth-child(12) { transition-delay: 0.65s; }
.side-menu.active .side-menu-list li:nth-child(13) { transition-delay: 0.7s; }

.side-menu-list a {
  display: block;
  padding: 18px 20px;
  color: #1a237e;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.side-menu-list a:hover {
  background-color: rgba(26, 35, 126, 0.1);
  color: #3949ab;
  transform: translateX(5px);
}

.side-menu-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(45deg, #69EACB, #6654F1);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.side-menu-list a:hover::before {
  transform: scaleY(1);
}

/* 모든 해상도에서 햄버거 메뉴 활성화 */
/* 햄버거 버튼 표시 */
.hamburger-btn {
  display: block;
}

/* 기존 네비게이션 메뉴 숨김 */
.desktop-nav {
  display: none !important;
}

/* 네비게이션 바 레이아웃 조정 */
.nav-menu {
  justify-content: space-between;
  padding: 0 20px;
}

/* 네비게이션 로고 */
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo a {
  color: #1a237e;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.3s ease;
  line-height: 1;
}

.nav-logo a:hover {
  color: #3949ab;
  background-color: rgba(26, 35, 126, 0.1);
}

/* ===========================
   制作物 갤러리 스타일
   =========================== */

.works-gallery-section {
  margin-top: 40px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.works-gallery-section h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: #000000;
  text-align: center;
  font-weight: 600;
}

.works-gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr); /* 2행에서 3행으로 변경 */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.work-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.work-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover .work-image-container img {
  transform: scale(1.05);
}

.work-description {
  padding: 20px;
  text-align: center;
}

.work-description h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.work-description p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .works-gallery-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  
  .work-image-container {
    height: 180px;
  }
  
  .works-gallery-section {
    margin-top: 30px;
    padding: 20px;
  }
  
  .works-gallery-section h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .works-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

/* ===========================
   Interview 섹션 스타일
   =========================== */

.interview-section {
  background: #2a2a2a;
  padding: 30px 20px;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

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

.interview-title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: bold;
  text-align: left;
  margin-bottom: 50px;
  font-family: 'GraphikBold', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'Arial Black', sans-serif;
}

.interview-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.interview-card {
  background: #404040;
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.interview-question {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
}

.interview-answer {
  color: #e0e0e0;
  line-height: 1.7;
}

.interview-answer p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.interview-answer p:last-child {
  margin-bottom: 0;
}

.interview-answer strong {
  color: #ffffff;
  font-weight: 600;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .interview-section {
    padding: 40px 15px;
  }
  
  .interview-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .interview-card {
    padding: 25px;
  }
  
  .interview-question {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .interview-answer p {
    font-size: 1rem;
  }
}

/* 프로젝트 기술 태그 스타일 */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    backdrop-filter: blur(10px);
}

/* ===== 3D 카드 캐러셀 스타일 ===== */
.card-carousel-section {
  background: transparent;
  min-height: auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.carousel-title {
  display: none; /* 타이틀 숨김 */
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: none;
  height: 650px;
  perspective: 2000px;
  perspective-origin: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.carousel-wrapper {
  position: relative;
  width: 300px;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-wrapper.initialized {
  opacity: 1;
}

/* 로딩 인디케이터 */
.carousel-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.carousel-wrapper.initialized + .carousel-loading {
  opacity: 0;
  pointer-events: none;
}

.project-card {
  position: absolute;
  width: 280px;
  height: 450px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  transform-origin: center center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card:nth-child(1) {
  background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 30%, #FF8A80 70%, #FFAB40 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

.project-card:nth-child(2) {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 25%, #26C6DA 50%, #00ACC1 75%, #00BCD4 100%);
  background-size: 200% 200%;
  animation: gradientShift 7s ease-in-out infinite;
}

.project-card:nth-child(3) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #9C27B0 50%, #3F51B5 75%, #5C6BC0 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

.project-card:nth-child(4) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 20%, #E91E63 40%, #FF4081 60%, #F8BBD9 80%, #FCE4EC 100%);
  background-size: 200% 200%;
  animation: gradientShift 5.5s ease-in-out infinite;
}

.project-card:nth-child(5) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 20%, #03DAC6 40%, #18FFFF 60%, #84FFFF 80%, #B2DFDB 100%);
  background-size: 200% 200%;
  animation: gradientShift 6.5s ease-in-out infinite;
}

.project-card:nth-child(6) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 20%, #4CAF50 40%, #8BC34A 60%, #CDDC39 80%, #FFEB3B 100%);
  background-size: 200% 200%;
  animation: gradientShift 7.5s ease-in-out infinite;
}

.project-card:nth-child(7) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #AB47BC 50%, #7E57C2 75%, #5E35B1 100%);
  background-size: 200% 200%;
  animation: gradientShift 8.5s ease-in-out infinite;
}

.project-card:nth-child(8) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 20%, #00E676 40%, #69F0AE 60%, #B9F6CA 80%, #E8F5E8 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

.project-card:nth-child(9) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 20%, #FF5722 40%, #FF7043 60%, #FFAB91 80%, #FBE9E7 100%);
  background-size: 200% 200%;
  animation: gradientShift 9s ease-in-out infinite;
}

/* 그라데이션 애니메이션 키프레임 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.project-card:hover {
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-8px) scale(1.02);
}

.project-card.active {
  z-index: 10;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.card-image {
  height: 220px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
  opacity: 1;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
  opacity: 1;
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  color: #333;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  min-height: 160px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 20px;
  flex: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* 긴 텍스트에 대한 폰트 크기 조정 */
.card-subtitle:has-text-length-long {
  font-size: 0.8rem;
  line-height: 1.3;
}

.card-btn {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 12px 24px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 네비게이션 화살표 */
.nav-arrow {
  position: absolute;
  top: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.nav-left {
  left: 50px;
}

.nav-right {
  right: 50px;
}

/* ===========================
   모바일 반응형 스타일 통합
   =========================== */

/* 모바일용 전체 스타일 */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    min-width: 0;
    overflow-x: hidden;
    background: #fff291; /* PC와 동일한 배경색 */
    padding-top: 48px;
    word-break: keep-all; /* 한글 텍스트가 세로로 깨지지 않도록 */
    writing-mode: horizontal-tb; /* 텍스트 방향을 가로로 강제 */
  }

  /* 텍스트 세로 깨짐 방지 추가 */
  * {
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  /* Hero Section Mobile Fixes */
  .hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-text {
    position: relative;
    z-index: 20;
    text-align: center;
    color: white;
    font-family: 'GraphikBold', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'Arial Black', sans-serif;
    font-weight: bold;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-text .line1,
  .hero-text .line2 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
  }

  .hero-text .line1 {
    font-size: 3rem !important;
    transform: translateX(-30px) !important;
    margin-bottom: 0.5rem;
  }
  
  .hero-text .line2 {
    font-size: 2rem !important;
    transform: translateX(30px) !important;
    letter-spacing: 0.1em;
  }

  .moon {
    width: 150px !important;
    height: 150px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
  }

  .stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  /* Ensure sections don't overflow */
  .main-layout,
  .content {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* About Me Mobile Fixes */
  .about-me-section {
    margin: 40px auto;
    padding: 20px 10px;
    max-width: calc(100vw - 20px);
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .about-me-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
    padding: 0;
  }

  .about-item {
    padding: 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  /* Skills Mobile Fixes */
  .skills-section {
    margin: 40px auto;
    padding: 20px 10px;
    max-width: calc(100vw - 20px);
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .skill-category {
    padding: 20px 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .skill-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin: 2px;
    word-break: keep-all !important;
  }

  /* Profile Container Mobile - 이제 기본 반응형 스타일 사용 */

  /* Title Mobile - 이제 기본 clamp 반응형 스타일 사용 */

  /* Social Links Mobile */
  .social-links {
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* Language Switcher Mobile */
  .language-switcher {
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
  }

  /* Navigation Menu Mobile */
  .nav-menu {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* 데스크탑 네비게이션 메뉴 숨김 */
  .desktop-nav {
    display: none !important;
  }
  
  /* 햄버거 버튼 스타일 조정 */
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 6px;
    background: none;
    border: none;
    color: #1a237e;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
    min-height: 32px;
  }
  
  .hamburger-btn:hover {
    color: #3949ab;
    background-color: rgba(26, 35, 126, 0.1);
  }
  
  .more-text {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2rem;
    display: flex;
    align-items: center;
    word-break: keep-all !important;
  }
  
  .hamburger-icon {
    font-size: 1.2rem;
    line-height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 네비게이션 로고 모바일 스타일 */
  .nav-logo a {
    font-size: 1rem;
    padding: 6px 10px;
    word-break: keep-all !important;
  }
  
  /* 사이드 메뉴 모바일 최적화 */
  .side-menu {
    width: 280px;
  }
  
  .side-menu-list a {
    padding: 18px 20px;
    font-size: 1rem;
    word-break: keep-all !important;
  }

  /* main-layout: 세로(컬럼) 정렬, 양쪽 여백 0.5rem */
  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0; /* 여백을 내부 요소에서 따로 설정 */
    padding: 0 0.5rem;
  }

  /* content: 전체 너비, 자동 높이, 아래 여백만 유지 */
  .content {
    width: 100%;
    height: auto;
    padding: 0;
    margin-bottom: 2.5rem;
  }

  /* youtube-sidebar: content 아래에 배치, 전체 너비, 그림자 + 내부 여백 */
  .youtube-sidebar {
    order: 2;
    width: 100%;
    padding: 1rem 0.5rem;
    margin: 1.5rem 0 0 0; /* 상단 여백만 간단히 설정 */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    background-color: #fff; /* 흰 배경으로 분리 */
    border-radius: 8px;
  }

  /* youtube-videos: 전체 너비, 동영상들도 100% 너비로 */
  .youtube-videos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 동영상 간 간격 */
  }

  /* iframe: 전체 너비에 자동 높이, 16:9 비율 유지 */
  .youtube-videos iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
  }

  /* 유튜브 섹션 제목 */
  .youtube-section-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
    word-break: keep-all !important;
  }

  /* 제목, 본문 폰트 크기 조정 */
  h1 {
    font-size: 1.3rem;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
  }
  
  h2, h3, h4, h5, h6 {
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
  }
  
  p {
    font-size: 1rem;
    margin-bottom: 16px;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
  }

  /* 시계(#clock) 크기 */
  #clock {
    font-size: 3rem;
  }

  /* 소셜 링크 버튼 세로 정렬 */
  .social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .social-button {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 10px 0;
  }

  /* 음악 리스트: 2열 그리드, 간격 조정 */
  .music-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2개의 카드를 한 줄에 표시 */
    gap: 15px; /* 카드 사이의 간격 조정 */
    padding: 15px; /* 전체 패딩 조정 */
    justify-items: stretch; /* 카드가 할당된 공간을 채우도록 */
  }

  .music-card {
    /* Ensure cards don't have excessive fixed widths that break the grid */
    width: 100%; /* 카드가 그리드 셀 너비에 맞게 조정되도록 */
    /* Add any other mobile-specific card adjustments if needed */
  }

  /* 3D 카드 캐러셀 모바일 */
  .card-carousel-section {
    padding: 60px 15px;
    overflow: visible;
  }
  
  .carousel-title {
    font-size: 3rem;
    margin-bottom: 60px;
  }
  
  .carousel-container {
    height: 500px;
    perspective: 1500px;
    overflow: visible;
  }
  
  .project-card {
    width: 250px;
    height: 380px;
  }
  
  .card-image {
    height: 200px;
  }
  
  .card-image img {
    min-height: 200px;
    max-height: 200px;
  }
  
  .card-content {
    padding: 20px;
    min-height: 130px;
  }
  
  .card-title {
    font-size: 1.2rem;
    word-break: keep-all !important;
  }
  
  .card-subtitle {
    font-size: 0.85rem;
    word-break: keep-all !important;
  }
  
  .nav-arrow {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .nav-left {
    left: 20px;
  }
  
  .nav-right {
    right: 20px;
  }

  /* 고정 언어 토글 버튼 모바일 */
  .fixed-language-toggle {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
  }
  
  .current-language {
    font-size: 0.8rem;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
  }
  
  .modern-switch {
    width: 48px;
    height: 26px;
  }
  
  .switch-thumb {
    width: 22px;
    height: 22px;
  }
  
  .modern-switch input:checked + .switch-track .switch-thumb {
    transform: translateX(22px);
  }

  /* Interview 섹션 모바일 */
  .interview-section {
    padding: 40px 15px;
  }
  
  .interview-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    word-break: keep-all !important;
  }
  
  .interview-card {
    padding: 25px;
  }
  
  .interview-question {
    font-size: 1.2rem;
    margin-bottom: 15px;
    word-break: keep-all !important;
  }
  
  .interview-answer p {
    font-size: 1rem;
    word-break: keep-all !important;
  }

  /* 제작물 갤러리 모바일 */
  .works-gallery-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  
  .work-image-container {
    height: 180px;
  }
  
  .works-gallery-section {
    margin-top: 30px;
    padding: 20px;
  }
  
  .works-gallery-section h3 {
    font-size: 1.5rem;
    word-break: keep-all !important;
  }

  .work-description h4 {
    word-break: keep-all !important;
  }

  .work-description p {
    word-break: keep-all !important;
  }
}

/* ===========================
   태블릿 반응형 (769px - 1024px)
   =========================== */

@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 16px;
    background: #fff291; /* PC와 동일한 배경색 */
  }

  .main-layout {
    flex-direction: column;
    padding: 0 2rem;
    gap: 2rem;
  }

  .content {
    padding: 1.5rem;
  }

  .about-me-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .works-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .music-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .carousel-container {
    height: 600px;
  }

  .project-card {
    width: 270px;
    height: 420px;
  }

  .shin-title {
    font-size: 3.5rem;
  }

  .hero-text .line1 {
    font-size: 3.5rem;
  }

  .hero-text .line2 {
    font-size: 2.2rem;
  }
}

/* ===========================
   대형 화면 반응형 (1025px 이상)
   =========================== */

@media (min-width: 1025px) {
  body {
    background: #fff291; /* PC와 동일한 배경색 */
  }

  .main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .content {
    max-width: none;
    flex: 2;
  }

  .youtube-sidebar {
    flex: 1;
    max-width: 400px;
  }

  .about-me-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 48px 40px;
  }

  .skills-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 40px;
  }
}

/* ===========================
   초소형 화면 (480px 이하)
   =========================== */

@media (max-width: 480px) {
  body {
    font-size: 14px;
    background: #fff291; /* PC와 동일한 배경색 */
    padding-top: 48px;
  }

  .shin-title {
    font-size: 1.8rem !important;
    padding: 0 15px;
    line-height: 1.2;
  }

  .about-me-section {
    padding: 15px 5px;
    margin: 30px auto;
  }

  .about-item {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .about-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .skills-section {
    padding: 15px 5px;
    margin: 30px auto;
  }

  .skill-category {
    padding: 15px 10px;
  }

  .skill-tag {
    padding: 4px 8px;
    font-size: 0.7rem;
    margin: 1px;
  }

  .hero-text .line1 {
    font-size: 2.2rem !important;
  }

  .hero-text .line2 {
    font-size: 1.5rem !important;
  }

  .moon {
    width: 120px !important;
    height: 120px !important;
  }

  .project-card {
    width: 220px;
    height: 350px;
  }

  .card-content {
    padding: 15px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-subtitle {
    font-size: 0.8rem;
  }

  .music-list {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .works-gallery-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .work-image-container {
    height: 160px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .nav-left {
    left: 10px;
  }

  .nav-right {
    right: 10px;
  }

  .interview-title {
    font-size: 1.8rem;
  }

  .interview-card {
    padding: 20px;
  }

  .interview-question {
    font-size: 1.1rem;
  }

  .interview-answer p {
    font-size: 0.9rem;
  }
}
