/* FORCE STICKY FOOTER - NO SPACING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
}

.footer {
  margin-top: auto !important;
  flex-shrink: 0 !important;
}

/* Portfolio Page Footer Fix */
body.portfolio-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.portfolio-body .app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

body.portfolio-body .footer {
  position: relative !important;
  margin-top: auto !important;
  clear: both !important;
  z-index: 999 !important;
  width: 100% !important;
}

/* CSS Variables */
:root {
  --primary-color: #ffffff;
  --secondary-color: #999999;
  --accent-color: #C9AE91;
  --background-color: #000000;
  --font-primary: 'Inter', sans-serif;
  --font-script: 'Playfair Display', serif;
}

/* Reset and Base Styles */
html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--background-color);
  color: var(--primary-color);
  overflow-x: hidden;
  line-height: 1.6;
  word-break: keep-all;
  word-wrap: break-word;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.app {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 0 3rem;
  padding-top: 100px;
  position: relative;
  z-index: 10;
  flex: 1;
}

/* Portfolio page main content */
main.portfolio-page {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Wave Background Canvas */
.wave-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #1E1E1E;
  pointer-events: none;
}

/* mask 지원 브라우저용 */
@supports (mask: linear-gradient(black, transparent)) or (-webkit-mask: linear-gradient(black, transparent)) {
  .wave-background {
    mask: linear-gradient(to right, 
      transparent 0%, 
      rgba(255,255,255,0.2) 30%, 
      rgba(255,255,255,0.5) 50%, 
      rgba(255,255,255,0.8) 70%, 
      rgba(255,255,255,1) 85%);
    -webkit-mask: linear-gradient(to right, 
      transparent 0%, 
      rgba(255,255,255,0.2) 30%, 
      rgba(255,255,255,0.5) 50%, 
      rgba(255,255,255,0.8) 70%, 
      rgba(255,255,255,1) 85%);
  }
}

/* mask 미지원 브라우저를 위한 fallback */
@supports not ((mask: linear-gradient(black, transparent)) or (-webkit-mask: linear-gradient(black, transparent))) {
  .wave-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
      rgba(30,30,30,1) 0%, 
      rgba(30,30,30,0.8) 30%, 
      rgba(30,30,30,0.5) 50%, 
      rgba(30,30,30,0.2) 70%, 
      rgba(30,30,30,0) 85%);
    pointer-events: none;
    z-index: 1;
  }
}

/* Portfolio Section */
.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 12px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(201, 174, 145, 0.9), rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  border-radius: 12px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-content h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.portfolio-tech {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.content-sections {
  position: relative;
  z-index: 10;
}

/* Page Content Management */
.page-content {
  display: none;
  opacity: 0;
}

.page-content.active {
  display: block;
  opacity: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2rem 3rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header .logo {
  justify-self: start;
}

.header-navigation {
  justify-self: center;
}

.header-spacer {
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.header-navigation {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.header-navigation .nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.header-navigation .nav-link:hover {
  color: #C9AE91;
}

.header-navigation .nav-link.active {
  color: #C9AE91;
}

.header-navigation .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: #C9AE91;
  transition: width 0.3s ease;
}

.header-navigation .nav-link:hover::after,
.header-navigation .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  max-width: 600px;
  mix-blend-mode: difference;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-title .creative {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  display: block;
}

.hero-title .developer {
  font-weight: 800;
  letter-spacing: -2px;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, #C9AE91, #ffffff, #C9AE91, #ffffff);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  max-width: 500px;
  word-break: keep-all;
  word-wrap: break-word;
  line-height: 1.6;
}

.hero-details {
  font-size: 0.95rem;
  color: var(--secondary-color);
  max-width: 500px;
  margin-bottom: 2rem;
  word-break: keep-all;
  word-wrap: break-word;
  line-height: 1.6;
}

.contact-info {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tech-stack {
  font-size: 0.85rem;
  color: var(--secondary-color);
  line-height: 1.5;
}

/* Hero 텍스트 요소들 초기 숨김 */
.hero-title,
.brand-name,
.hero-description,
.hero-details,
.contact-info,
.tech-stack {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

/* Hero title 개별 요소들도 숨김 */
.hero-title .creative,
.hero-title .developer {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
  display: block;
}

.hero-title.show,
.brand-name.show,
.hero-description.show,
.hero-details.show,
.contact-info.show,
.tech-stack.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-title .creative.show,
.hero-title .developer.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 2rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    min-height: 120px;
  }

  .header .logo,
  .header-navigation,
  .header-spacer {
    justify-self: center;
  }

  .header-navigation {
    gap: 2rem;
    order: 2;
  }

  .header .logo {
    order: 1;
  }

  .header-spacer {
    display: none;
  }

  .header-navigation .nav-link {
    font-size: 0.85rem;
  }

      .main-content {
        padding: 0 2rem;
        padding-top: 120px;
        min-height: calc(100vh - 120px);
    }

  .hero {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .portfolio-overlay {
    padding: 1.5rem;
  }

  .portfolio-content h4 {
    font-size: 1.2rem;
  }

  .portfolio-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
    min-height: 140px;
  }

  .header .logo,
  .header-navigation,
  .header-spacer {
    justify-self: center;
  }

  .header .logo {
    order: 1;
  }

  .logo-image {
    height: 28px;
  }

  .header-navigation {
    gap: 1rem;
    order: 2;
  }

  .header-spacer {
    display: none;
  }

  .header-navigation .nav-link {
    font-size: 0.8rem;
  }

  .main-content {
    padding: 0 1rem;
    padding-top: 140px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-description,
  .hero-details {
    font-size: 0.9rem;
  }
  
  /* 작은 모바일에서도 구체 크기 4배 증가 */
  #about-sphere-canvas {
    width: 2160px;
    height: 2160px;
    max-width: 130vw;
    max-height: 130vw;
  }
  
  .about-sphere-container {
    height: auto;
    min-height: 30px;
    margin: -30px 0;
    padding: 0;
  }
  
  /* About 섹션 간격 완전 제거 */
  #section-about .py-5 {
    padding: 0;
  }
  
  #section-about .my-5 {
    margin: 0;
  }
  
  /* About 섹션 전체 여백 완전 최소화 */
  #section-about {
    padding: 0;
  }
  
  /* 구체 섹션 행간 완전 제거 */
  #section-about .row {
    margin: 0;
    gap: 0;
  }
  
  #section-about .col-lg-5,
  #section-about .col-lg-6 {
    padding: 0 5px;
    margin: 0;
  }
  
  /* 텍스트와 구체 간격 완전 최소화 */
  #section-about .me-lg-5,
  #section-about .pe-lg-5 {
    margin: 0;
    padding: 0 5px;
  }
}

/* AIvent Inspired Sections */

/* Section Styles */
.section-dark {
  background-color: var(--background-color);
  padding: 100px 0;
  position: relative;
}

.text-light {
  color: var(--primary-color) !important;
}

/* Container and Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-6, .col-lg-5, .col-lg-4, .col-md-6 {
  padding: 0 15px;
}

.col-lg-6 { width: 50%; }
.col-lg-5 { width: 41.666667%; }
.col-lg-4 { width: 33.333333%; }
.col-md-6 { width: 50%; }
.offset-lg-3 { margin-left: 25%; }

.g-4 > * {
  margin-bottom: 2rem;
}

.gx-5 {
  margin: 0 -2rem;
}

.gx-5 > * {
  padding: 0 2rem;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

/* Typography */
.subtitle {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.1rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* About Section */
#section-about .me-lg-5 {
  margin-right: 3rem;
}

#section-about .pe-lg-5 {
  padding-right: 3rem;
}

#section-about .py-5 {
  padding: 3rem 0;
}

#section-about .my-5 {
  margin: 3rem 0;
}

/* Typing Animation */
.typing-text {
  opacity: 0;
  visibility: hidden;
  position: relative;
  min-height: 1.2em;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  word-break: keep-all;
  word-wrap: break-word;
  line-height: 1.6;
}

.typing-text.typing-ready {
  opacity: 1;
  visibility: visible;
}

.typing-text.typing-active::after {
  content: '|';
  color: var(--accent-color);
  animation: blink 1s infinite;
  font-weight: normal;
  margin-left: 2px;
}

.typing-text.typing-complete::after {
  display: none;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Check List */
.ul-check {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.ul-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.6;
}

.ul-check li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ul-check li.typing-complete:before {
  opacity: 1;
}

/* About Sphere Container */
.about-sphere-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#about-sphere-canvas {
  width: 540px;
  height: 540px;
  max-width: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#about-sphere-canvas.loaded {
  opacity: 1;
}

.about-sphere-container {
  height: 540px;
}

/* PC에서 구체 크기 더욱 증가 */
@media (min-width: 1200px) {
  #about-sphere-canvas {
    width: 720px;
    height: 720px;
  }
  
  .about-sphere-container {
    height: 720px;
  }
}

/* Tech Stack Section */
.tech-stack-section {
  background: transparent;
  padding: 40px 0;
  margin: 80px 0;
  overflow: hidden;
}

.tech-stack-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tech-stack-slider {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-stack-track {
  display: flex;
  gap: 80px;
  animation: slide 30s linear infinite;
  width: max-content;
}

.tech-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 180px;
  height: 80px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tech-logo:hover {
  transform: translateY(-5px);
}

.tech-logo-img {
  width: auto;
  height: 48px;
  max-width: 96px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.tech-logo:hover .tech-logo-img {
  filter: brightness(0) saturate(100%) invert(75%) sepia(17%) saturate(486%) hue-rotate(349deg) brightness(93%) contrast(90%);
  transform: scale(1.1);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Tech Stack Responsive */
@media (max-width: 1024px) {
  .tech-stack-track {
    gap: 60px;
    animation: slide 25s linear infinite;
  }
  
  .tech-logo {
    min-width: 100px;
    max-width: 150px;
    height: 70px;
  }
  
  .tech-logo-img {
    height: 42px;
    max-width: 84px;
  }
}

@media (max-width: 768px) {
  .tech-stack-section {
    padding: 30px 0;
    margin: 60px 0;
  }
  
  .tech-stack-track {
    gap: 50px;
    animation: slide 20s linear infinite;
  }
  
  .tech-logo {
    min-width: 80px;
    max-width: 120px;
    height: 60px;
  }
  
  .tech-logo-img {
    height: 36px;
    max-width: 72px;
  }
}

@media (max-width: 480px) {
  .tech-stack-section {
    margin: 40px 0;
  }
  
  .tech-stack-track {
    gap: 40px;
    animation: slide 15s linear infinite;
  }
  
  .tech-logo {
    min-width: 80px;
    max-width: 120px;
    height: 50px;
  }
  
  .tech-logo-img {
    height: 30px;
    max-width: 60px;
  }
}

/* Services Section */
.spacer-single {
  height: 50px;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

/* Service Cards */
.service-card {
  height: 100%;
}

.service-card-inner {
  position: relative;
  height: 350px;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

.service-card:hover .service-card-inner {
  background: var(--accent-color);
  transform: translateY(-10px);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
}

.service-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-content p {
  color: var(--secondary-color);
  line-height: 1.5;
  margin: 0;
}

.service-card:hover .service-content p {
  color: var(--primary-color);
}

.service-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--accent-color);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  color: var(--primary-color);
  opacity: 0.8;
  transform: scale(1.1);
}

.gradient-edge-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.radial-gradient-color {
  background: radial-gradient(circle at center, rgba(201, 174, 145, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .radial-gradient-color {
  opacity: 1;
}

/* Utility Classes */
.relative {
  position: relative;
}

.abs {
  position: absolute;
}

.z-2 {
  z-index: 2;
}

.h-100 {
  height: 100%;
}

.w-100 {
  width: 100%;
}

.start-0 {
  left: 0;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.bg-dark-2 {
  background-color: #1a1a1a !important;
}

.rounded-1 {
  border-radius: 10px;
}

.overflow-hidden {
  overflow: hidden;
}

.p-40 {
  padding: 2.5rem;
}

.d-flex {
  display: flex;
}

.p-0 {
  padding: 0;
}

/* Animation Classes */
.wow {
  visibility: hidden;
}

.wow.fadeInUp {
  animation: fadeInUp 1s ease forwards;
}

.wow.scaleIn {
  animation: scaleIn 1s ease forwards;
}

.wow.scale-in-mask {
  animation: scaleInMask 0.8s ease forwards;
}

.wow.fadeInLeft {
  animation: fadeInLeft 1s ease forwards;
}

.wow.fadeInRight {
  animation: fadeInRight 1s ease forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInMask {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design for New Sections */
@media (max-width: 992px) {
  .col-lg-6, .col-lg-5, .col-lg-4 {
    width: 100%;
  }
  
  .offset-lg-3 {
    margin-left: 0;
  }
  

  
  #section-about .me-lg-5,
  #section-about .pe-lg-5 {
    margin-right: 0;
    padding-right: 0;
  }
  
  .tech-showcase {
    height: 300px;
  }
  
  .tech-circle {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .col-md-6 {
    width: 100%;
  }
  
  .section-dark {
    padding: 40px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .service-card-inner {
    height: 300px;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  

  
  /* 모바일에서 구체 크기 4배 증가 */
  #about-sphere-canvas {
    width: 2160px;
    height: 2160px;
    max-width: 120vw;
    max-height: 120vw;
  }
  
  .about-sphere-container {
    height: auto;
    min-height: 50px;
    margin: -20px 0;
    padding: 0;
  }
  
  /* About 섹션 간격 최소화 */
  #section-about .py-5 {
    padding: 0;
  }
  
  #section-about .my-5 {
    margin: 0;
  }
  
  /* About 섹션 전체 여백 최소화 */
  #section-about {
    padding: 5px 0;
  }
  
  /* 구체 섹션 행간 최소화 */
  #section-about .row {
    margin: 0;
    gap: 0;
  }
  
  #section-about .col-lg-5,
  #section-about .col-lg-6 {
    padding: 0 10px;
    margin: 0;
  }
  
     /* 텍스트와 구체 간격 더 줄이기 */
   #section-about .me-lg-5,
   #section-about .pe-lg-5 {
     margin: 0;
     padding: 0 10px;
   }
}

/* Portfolio Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #B8A082;
}

.portfolio-modal.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding: 60px 40px 40px;
}

/* Modal Header */
.modal-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.language-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.flag-kr {
    width: 20px;
    height: 14px;
    background: linear-gradient(to bottom, #fff 50%, #cd2e3a 50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
}

.flag-kr::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #000 2px, transparent 2px);
    border-radius: 50%;
}

.url-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.url-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.url-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.url-link:hover {
    color: var(--accent-color);
}

.visit-site-btn {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.visit-site-btn:hover {
    background: #b8996b;
    transform: translateY(-1px);
}

/* Info Grid */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-column h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-column p {
    color: var(--primary-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* View Size Section */
.view-size-section {
    margin-bottom: 30px;
}

.view-size-section h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-size-buttons {
    display: flex;
    gap: 10px;
}

.view-size-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-size-btn.active,
.view-size-btn:hover {
    background: var(--accent-color);
    color: var(--background-color);
    border-color: var(--accent-color);
}

/* Tags */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.modal-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Preview */
.modal-preview {
    margin-bottom: 40px;
}

.preview-container {
    position: relative;
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.preview-container:hover img {
    transform: scale(1.02);
}

/* View Size Specific Styles */
.preview-container.view-pc {
    max-width: 100%;
    margin: 0 auto;
}

.preview-container.view-tablet {
    max-width: 768px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.preview-container.view-mobile {
    max-width: 375px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #333;
}

/* More Views */
.more-view-section {
    margin-bottom: 40px;
}

.more-view-section h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.more-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.more-view-item {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-view-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.more-view-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.more-view-item:hover img {
    transform: scale(1.1);
}

/* About Section */
.about-section h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-section p {
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 40px 20px 20px;
    }
    
    .modal-header {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .company-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .view-size-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .view-size-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .more-view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-site-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-tags {
        justify-content: center;
    }
    
    .more-view-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Portfolio Card Enhancement */
.portfolio-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid rgba(201, 174, 145, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.8);
}

/* Portfolio Container Transitions */
.portfolio-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 174, 145, 0.3);
    border-color: rgba(201, 174, 145, 0.8);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
} 

/* ===========================
   FOOTER STYLES
   =========================== */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    color: #ffffff;
    padding: 30px 0 0 0;
    margin-top: auto;
    border-top: 1px solid rgba(201, 174, 145, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    clear: both;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-container {
    width: 100%;
    padding: 0 3rem;
}

.footer-logo-section {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: flex-start;
    padding-bottom: 40px;
    width: 100%;
}

/* Logo Section */
.footer-logo {
    width: 200px;
    height: 80px;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

/* Left Section - Business Information */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(201, 174, 145, 0.3));
    transform: scale(1.05);
}

.footer-company-names {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.footer-legal-name {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    font-weight: 400;
}

/* Center Section - Business Information */
.footer-center {
    display: none;
}

.footer-business-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-info-row {
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.footer-address,
.footer-phone,
.footer-email,
.footer-details {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 400;
}

.footer-address {
    color: #ffffff;
    font-weight: 500;
}

.footer-phone {
    color: var(--accent-color);
    font-weight: 500;
}

.footer-email {
    color: #ffffff;
}

.footer-details {
    color: #cccccc;
    font-size: 13px;
}

/* Right Section - Navigation */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
    margin-right: 200px;
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 8px;
}

.footer-nav-link:hover {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    transform: translateX(4px);
}

.footer-admin-section {
    margin-top: auto;
}

.footer-admin-link {
    color: #888888;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.footer-admin-link:hover {
    color: var(--accent-color);
    opacity: 1;
    border-color: rgba(201, 174, 145, 0.3);
    background: rgba(201, 174, 145, 0.05);
}

/* Copyright Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    margin-top: 20px;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: #999999;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr auto;
        gap: 40px;
    }
    
    .footer-logo {
        width: 160px;
        height: 64px;
    }
    
    .footer-right {
        margin-right: 160px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 25px 0 0 0;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-logo-section {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        width: 170px;
        height: 68px;
    }
    
    .footer-business-info {
        gap: 8px;
    }
    
    .footer-address,
    .footer-phone,
    .footer-email,
    .footer-details {
        font-size: 13px;
    }
    
    .footer-right {
        justify-self: center;
        align-items: center;
        text-align: center;
        margin-right: 0;
    }
    
    .footer-nav-links {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-nav-title {
        display: none;
    }
    
    .footer-nav-link {
        border-left: none;
        padding-left: 0;
        padding: 6px 12px;
        border-radius: 4px;
    }
    
    .footer-nav-link:hover {
        transform: none;
        background: rgba(201, 174, 145, 0.1);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 0 0;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-logo-section {
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .footer-logo {
        width: 150px;
        height: 60px;
    }
    
    .footer-business-info {
        gap: 6px;
    }
    
    .footer-address,
    .footer-phone,
    .footer-email,
    .footer-details {
        font-size: 12px;
    }
    
    .footer-nav-title {
        display: none;
    }
    
    .footer-nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .footer-copyright p {
        font-size: 12px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .footer-logo,
    .footer-nav-link,
    .footer-admin-link {
        transition: none;
    }
    
    .footer-logo:hover {
        transform: none;
    }
    
    .footer-nav-link:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid var(--accent-color);
    }
    
    .footer-address,
    .footer-phone,
    .footer-email {
        color: #ffffff;
    }
    
    .footer-nav-link {
        border-left-width: 3px;
    }
}

/* Print Styles */
@media print {
    .footer {
        background: none;
        color: #000000;
        border-top: 1px solid #000000;
    }
    
    .footer-brand {
        color: #000000;
    }
    
    .footer-nav-link,
    .footer-admin-link {
        color: #000000;
    }
    
    .footer-logo {
        filter: none;
    }
} 