/* Base Styles */
body {
  background: linear-gradient(135deg, #f9fbf8 0%, #f0f4f0 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Modern Top Navigation */
.navbar-modern {
  background: #a5c4a8;
  box-shadow: 0 2px 20px rgba(165,196,168,0.2);
  padding: 1rem 0;
}

.navbar-brand {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  max-width: 200px;
}

/* Hover effects removed */

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover effects removed */

.navbar-toggler {
  border: none;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.main-content {
  width: 100%;
  min-height: calc(100vh - 80px);
}

/* Page Container */
.page-container {
  padding-top: 3rem;
  padding-bottom: 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Text Readability */
.page-container p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
}

.page-container h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #435274;
}

.page-container h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #435274;
  margin-bottom: 1.5rem;
}

.card-img-top {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/* Modern Hero Section */
.hero-modern {
  background: linear-gradient(135deg, #6f8f7f 0%, #5a7a6a 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* Modern Cards */
.modern-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(30,41,59,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(226,232,240,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hover effects removed */

.card-header-modern {
  background: linear-gradient(135deg, #6f8f7f 0%, #5a7a6a 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.card-header-modern i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card-header-modern h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.card-body-modern {
  padding: 1.5rem;
  padding-bottom: 3.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-footer-modern {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #a5c4a8;
  margin-bottom: 0.8rem;
}

.profile-text {
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

/* Blog Preview */
.blog-preview {
  margin-bottom: 1rem;
}

.blog-preview h5 {
  color: #495057;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
}

.blog-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #a5c4a8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border: 1px solid #a5c4a8;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-link:hover {
  background-color: #a5c4a8;
  color: white;
  text-decoration: none;
}

/* Projects Preview */
.projects-preview {
  margin-bottom: 1rem;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  border-left: 4px solid #a5c4a8;
}

/* Hover effects removed */

.project-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.project-info h5 {
  margin: 0 0 0.5rem 0;
  color: #6f8f7f;
  font-size: 1rem;
  font-weight: 600;
}

.project-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

/* Contact Preview */
.contact-preview {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  color: #495057;
  transition: all 0.3s ease;
}

/* Hover effects removed */

.contact-item i {
  color: #a5c4a8;
  font-size: 1.2rem;
  width: 20px;
}

.contact-link {
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effects removed */

.contact-form-preview {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
}

/* Message Previews */
.about-message-preview,
.projects-message-preview,
.contact-form-preview {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
  position: absolute;
  bottom: 5rem;
  left: 2rem;
  right: 2rem;
}

/* Modern Button */
.btn-modern {
  background: linear-gradient(135deg, #6f8f7f 0%, #5a7a6a 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
}

/* Hover effects removed */

/* Additional Styles */
.profile-img {
  box-shadow: 0 4px 15px rgba(165, 196, 168, 0.3);
}

/* Hover effects removed */


/* Hover effects removed */

.project-thumb {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .modern-card {
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-logo {
    height: 30px;
    max-width: 150px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.4rem 0.8rem;
    margin: 0.1rem 0;
  }
  
  .main-content {
    padding: 0;
  }

  /* 태블릿/모바일에서 메시지 위치 조정 */
  .about-message-preview,
  .projects-message-preview,
  .contact-form-preview {
    position: static;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .card-body-modern {
    padding-bottom: 1.5rem;
  }
}

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

.modern-card {
  animation: fadeInUp 0.6s ease-out;
}

.modern-card:nth-child(2) {
  animation-delay: 0.2s;
}

.modern-card:nth-child(3) {
  animation-delay: 0.4s;
}