/* Home page enhanced styles */
.home-container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
}

/* Enhanced hero section with more academic styling */
.hero-section {
  width: 100%;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(229, 57, 53, 0.05), rgba(67, 160, 71, 0.05), rgba(120, 144, 156, 0.05));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Particle Animation Styles */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 15s infinite linear;
}

.water-particle { 
  background-color: #64b5f6 !important; 
}

.fire-particle { 
  background-color: #ff8a80 !important; 
}

.earth-particle { 
  background-color: #81c784 !important; 
}

.wind-particle { 
  background-color: #b0bec5 !important; 
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Teaser container */
.teaser-container {
  max-width: 900px; /* Limits the overall width of the entire section */
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden; /* Hides any overflow of content */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* New: Make teaser-container a Grid Container */
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns of equal width */
  gap: 15px; /* Space between the image items */
  padding: 15px; /* Padding inside the overall container */
  background-color: #f0f0f0; /* Optional: background for the container */
}

/* Individual teaser item (the wrapper for each image) */
.teaser-item {
  position: relative; /* Crucial for absolute positioning of the image inside */
  padding-bottom: 112.5%; /* 640:720 aspect ratio (720 / 640 = 1.125 * 100%) */
  height: 0; /* Ensures height is controlled by padding-bottom */
  overflow: hidden; /* Hides any overflow if the image is slightly off */
  border-radius: 8px; /* Matches teaser-container border-radius */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Lighter shadow for individual items */
}

/* Image inside the teaser item */
.teaser-item img {
  position: absolute; /* Positions the image to fill the teaser-item */
  top: 0;
  left: 0;
  width: 100%; /* Makes image fill the width of teaser-item */
  height: 100%; /* Makes image fill the height of teaser-item */
  object-fit: cover; /* Ensures image covers the area, cropping if aspect ratios don't match exactly */
  display: block; /* Removes any extra space below inline images */
}


.title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #1e88e5, #e53935, #43a047, #78909c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 800;
  letter-spacing: -1px;
}


.title {
  font-size: 2.7rem;
  margin-bottom: 20px;
  color: #1a1a1a;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.conference {
  font-size: 2.2rem;
  margin-bottom: 0px;
  color: #1a1a1a;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.0;
}

.subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1a1a1a;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.tldr {
  font-size: 1.6rem;
  margin-bottom: 40px;
  color: #0b1d4a;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.highlight-gradient {
  background: linear-gradient(45deg, #e53935, #43a047, #78909c);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* Enhanced element cards with hover effects */
.element-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.element-card {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(88, 80, 80, 0.15);
  cursor: pointer;
}

.element-card:active {
  filter: brightness(0.95);
}

.element-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.element-card.water {
  background: var(--water-background);
}

.element-card.fire {
  background: var(--fire-background);
}

.element-card.earth {
  background: var(--earth-background);
}

.element-card.wind {
  background: var(--wind-background);
}

.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.element-card h3 {
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  color: white;
}

.element-card p {
  margin: 0;
  opacity: 0.9;
  color: white;
}

.element-icon {
  font-size: 3rem;
  margin-top: 15px;
}

/* Enhanced overview section with improved typography */
.overview-section {
  background-color: white;
  border-radius: 12px;
  padding: 45px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #1f2937;
  margin-bottom: 45px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Abstract section - improved layout and typography */
.abstract-section {
  background-color: #ffffff;
  border: 1px solid #e0e7ff;
  border-left: 4px solid #1976d2;
  padding: 50px 45px;
  margin: 40px auto;
  max-width: 1000px;
  font-style: italic;
  color: #374151;
  line-height: 1.8;
  font-size: 1.1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(25, 118, 210, 0.08);
  position: relative;
  overflow: hidden;
}

.abstract-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1976d2, #64b5f6, #e3f2fd);
}

.abstract-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #1976d2;
  font-style: normal;
  font-weight: 700;
  position: relative;
}

.abstract-section p {
  text-align: justify;
  hyphens: auto;
  margin: 0;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  /* Ensure proper text alignment and prevent skewing */
  word-spacing: normal;
  letter-spacing: 0.01em;
  text-indent: 0;
}

/* Enhanced section headers with better typography */
.overview-section h2, 
.overview-section h3, 
.overview-section h4,
.footer-section h2, 
.footer-section h3, 
.footer-section h4,
.code-implementation h2, 
.code-implementation h3, 
.code-implementation h4 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Enhanced author block styling */
.author-block {
  margin-top: 30px;
  margin-bottom: 30px;
}

.authors {
  font-size: 1.8rem;
  color: #374151;
  margin-bottom: 20px;
  font-weight: 500;
}

.equal-contrib {
  font-size: 1.4rem;
  color: #6b7280;
  margin-bottom: 20px;
  font-style: italic;
}

.affiliation {
  font-size: 1.4rem;
  color: #6b7280;
  margin-top: 10px;
}


/* Button improvements */
.button, .download-button, .github-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.button:hover, .download-button:hover, .github-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Link improvements */
.overview-section a, 
.footer-section a,
.code-implementation a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.overview-section a:hover, 
.footer-section a:hover,
.code-implementation a:hover {
  color: #1565c0;
  border-bottom-color: #1976d2;
  text-decoration: none;
}

/* Enhanced h2 styling for sections */
.overview-section h2,
.footer-section h2,
.code-implementation h2 {
  font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1976d2;
  margin-bottom: 22px;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 12px;
  margin-top: 45px;
}

.overview-section h2:first-child,
.footer-section h2:first-child,
.code-implementation h2:first-child {
  margin-top: 0;
}

@media (max-width: 700px) {
  .overview-section h2, 
  .overview-section h3, 
  .overview-section h4,
  .footer-section h2, 
  .footer-section h3, 
  .footer-section h4,
  .code-implementation h2, 
  .code-implementation h3, 
  .code-implementation h4 {
    font-size: 1.3rem;
    padding-bottom: 8px;
  }
}

.overview-section ul, 
.overview-section li {
  color: #222;
}

/* Enhanced links section */
.links-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  color: #1a1a1a;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(45deg, #1e88e5, #0d47a1);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  gap: 8px;
}

.link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.link-button i {
  font-size: 1.2rem;
}

/* Enhanced dataset structure and code sections */
.dataset-structure, 
.code-implementation, 
.footer-section {
  margin-top: 40px;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dataset-structure, 
.dataset-structure pre, 
.code-block, 
.code-block pre {
  font-size: 1.0rem;
  font-family: 'Fira Mono', 'Menlo', 'Consolas', monospace;
  line-height: 1.4;
}

.code-block {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  padding: 25px;
  overflow-x: auto;
  border-left: 4px solid #1976d2;
  margin: 25px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.code-block pre {
  margin: 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'Fira Mono', 'Menlo', 'Consolas', monospace;
}

.code-block code {
  color: #333;
  font-weight: normal;
}

/* Dataset Overview Section */
.dataset-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 40px 30px;
  margin: 40px 0;
  border: 1px solid #e1e5e9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dataset-stats {
  margin: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid #e0e4e7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.stat-label {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dataset-info {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.dataset-info h3 {
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.physics-features {
  list-style: none;
  padding: 0;
}

.physics-features li {
  background: #f8fafc;
  margin: 12px 0;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #1976d2;
  font-size: 1rem;
  line-height: 1.6;
}

.physics-features li strong {
  color: #1976d2;
  font-weight: 600;
}

.view-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 25px 0;
}

.view-info, .resolution-info {
  background: #f8fafc;
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #e2e8f0;
}

.view-info h4, .resolution-info h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 8px;
}

.view-info ul, .resolution-info ul {
  list-style: none;
  padding: 0;
}

.view-info li, .resolution-info li {
  margin: 8px 0;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.view-info li:last-child, .resolution-info li:last-child {
  border-bottom: none;
}

.view-info strong, .resolution-info strong {
  color: #334155;
  font-weight: 600;
}

/* Responsive design for dataset section */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-item {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .view-setup {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dataset-section {
    padding: 25px 20px;
  }
  
  .dataset-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

/* New citation section */
.citation-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  border: 1px solid #e0e0e0;
}

.citation-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #1976d2;
}

.citation-text {
  font-family: 'Fira Mono', 'Menlo', 'Consolas', monospace;
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.copy-citation {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.copy-citation:hover {
  background-color: #0d47a1;
}

/* Enhanced author block */
.author-block {
  text-align: center;
  margin-bottom: 25px;
  margin-top: 10px;
  color: #1a1a1a;
  font-size: 1.1rem;
  line-height: 1.5;
}

.author-block .authors {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.author-block .equal-contrib {
  font-size: 1.0rem;
  color: #444;
  margin-top: 5px;
}

.author-block .affiliation {
  font-size: 1.0rem;
  color: #444;
  font-weight: 500;
  margin-top: 5px;
}

.author-block .authors a:hover {
  color: #ff6600; /* Change to any color you want */
  cursor: pointer; /* Optional: change cursor to pointer */
}

/* Author images row */
.author-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

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

.author-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-image .name {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Improved text styles for sections */
.overview-section, 
.footer-section, 
.code-implementation {
  font-size: 1.13rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.overview-section strong, 
.footer-section strong, 
.code-implementation strong {
  font-weight: 700;
  color: #1976d2;
}

.overview-section ul, 
.footer-section ul, 
.code-implementation ul {
  margin-left: 0;
  padding-left: 22px;
  list-style: disc outside;
}

.overview-section li, 
.footer-section li, 
.code-implementation li {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

/* Results gallery */
.results-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  padding: 10px;
  background-color: white;
  font-size: 0.9rem;
  text-align: center;
}

/* Main layout and sidebar styles */
.main-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
  margin-left: 210px; /* sidebar width만큼 마진 추가 */
  padding-top: 60px; /* fixed 상단 네비게이션 높이만큼 패딩 추가 */
}

.sidebar-nav {
  width: 210px;
  background: #fff;
  border-right: 1.5px solid #e0e0e0;
  padding: 20px 0 0 0; /* 상단 패딩 줄임 */
  height: calc(100vh - 60px); /* 스티키 네비 높이만큼 빼기 */
  box-shadow: 2px 0 12px rgba(30,136,229,0.04);
  position: fixed;
  top: 60px; /* 스티키 네비게이션 높이만큼 아래로 이동 */
  left: 0;
  z-index: 900; /* 상단 네비게이션(1000)보다 낮게 설정 */
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 18px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 12px 28px 12px 32px;
  border-radius: 0 22px 22px 0;
  transition: background 0.18s, color 0.18s;
  line-height: 1.4;
}

/* 이모지를 직접 아래로 이동시키기 */
.nav-link {
  transform: translateY(3px); /* 전체 링크를 3px 아래로 이동 */
}

.nav-link.home { color: #1976d2; }
.nav-link.water { color: #1976d2; }
.nav-link.fire { color: #e64a19; }
.nav-link.earth { color: #388e3c; }
.nav-link.wind { color: #546e7a; }

.nav-link:hover, .nav-link:focus {
  background: #e3f2fd;
  color: #0d47a1;
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .main-layout {
    margin-left: 0; /* 모바일에서는 sidebar margin 제거 */
    padding-top: 60px; /* 모바일에서도 상단 네비 높이만큼 패딩 유지 */
  }
  
  .sidebar-nav {
    position: relative; /* 모바일에서는 fixed 대신 relative */
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1.5px solid #e0e0e0;
    padding: 20px 0;
  }
  
  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .sidebar-nav li {
    margin-bottom: 0;
  }
  
  .nav-link {
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 20px;
  }
  
  .home-container {
    padding: 20px 16px;
  }
  
  .title {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
  }
  
  .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  
  .hero-section {
    padding: 40px 15px;
    margin-bottom: 40px;
  }
  
  .abstract-section {
    padding: 30px 25px;
    margin: 25px 10px;
    font-size: 1rem;
  }
  
  .overview-section {
    padding: 30px 25px;
    margin-bottom: 30px;
  }
  
  .element-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Ensure footer section is always visible */
#contact.footer-section {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible;
}

/* Fallback for animate-in elements */
.animate-in {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Force contact section to be visible even without JavaScript */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  #contact.footer-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Enhanced scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.element-card:focus,
.button:focus {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .sidebar-nav,
  .sticky-nav,
  .navigation-section {
    display: none;
  }
  
  .home-container {
    max-width: none;
    padding: 0;
  }
  
  .abstract-section,
  .overview-section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Anchor offset for fixed navigation */
section[id] {
  scroll-margin-top: 100px; /* 더 큰 오프셋으로 조정 */
}

/* Alternative method using pseudo-elements for better browser support */
section[id]::before {
  content: '';
  display: block;
  height: 100px; /* 더 큰 오프셋으로 조정 */
  margin-top: -100px;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile responsive adjustments for anchor links */
@media (max-width: 768px) {
  body {
    scroll-padding-top: 60px; /* 모바일에서 더 작은 오프셋 */
  }
  
  section[id] {
    scroll-margin-top: 60px;
  }
  
  section[id]::before {
    height: 60px;
    margin-top: -60px;
  }
}

/* Mobile responsive adjustments for anchor offset */
@media (max-width: 768px) {
  body {
    scroll-padding-top: 80px; /* 모바일에서도 충분한 오프셋 */
  }
  
  section[id] {
    scroll-margin-top: 80px;
  }
  
  section[id]::before {
    height: 80px;
    margin-top: -80px;
  }
}
