:root {
  /* Dailyshot inspired colors */
  --primary-color: #fe5001; /* Exact Dailyshot orange */
  --primary-hover: #d44301;
  --secondary-color: #212529; /* Dark gray for text */
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --text-main: #212529;
  --text-content: #495057; /* Standard body text gray */
  --text-muted: #868e96;
  --border-color: #e9ecef;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-color: #121212;
  --bg-light: #1e1e1e;
  --text-main: #f8f9fa;
  --text-content: #e0e0e0; /* Brighter gray for dark mode */
  --text-muted: #a0a0a0;
  --border-color: #2c2c2c;
  --secondary-color: #000000;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Background Texture & Gradient */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Noise Texture */
body::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

body.dark-mode::before {
  opacity: 0.05;
}

/* Soft Orange Gradient Orb at Top Right */
body::after {
  background: radial-gradient(circle at 85% 10%, rgba(254, 80, 1, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: -2;
}

body.dark-mode::after {
  background: radial-gradient(circle at 85% 10%, rgba(254, 80, 1, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
}

/* Theme Switch Toggle */
.theme-switch {
  display: inline-block;
  height: 28px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #e9ecef;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border: 1px solid var(--border-color);
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 20px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 20px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider .material-symbols-rounded {
  font-size: 14px;
  color: #adb5bd;
  z-index: 1;
}

input:checked + .slider {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

body.dark-mode .slider {
  background-color: #2c2c2c;
}

body.dark-mode .slider .material-symbols-rounded {
  color: #888;
}

body.dark-mode .slider .moon-icon {
  color: #fff;
}

.dark-mode .navbar {
  background-color: rgba(18, 18, 18, 0.9);
}

.dark-mode .card, 
.dark-mode .timeline-item, 
.dark-mode .modal-content {
  background-color: #1e1e1e;
}

.dark-mode footer {
  background-color: #0a0a0a;
  border-top-color: #1a1a1a;
}

.dark-mode .contact-item {
  background-color: #2c2c2c;
}

.dark-mode .contact-item:not(.download-btn):hover {
  background-color: #3d3d3d;
}

.dark-mode .tech-tag {
  background-color: #2c2c2c;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

.dark-mode .modal-close {
  background-color: #2c2c2c;
  color: #ffffff;
}

.dark-mode .modal-close:hover {
  background-color: #3d3d3d;
}


a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout */
.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 24px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:first-child {
  margin-left: 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
}

.bg-light {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  margin: 40px 24px;
  padding: 80px 40px;
}

/* Typography */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--primary-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .navbar {
  background-color: rgba(18, 18, 18, 0.9);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--primary-color);
}

.nav-links a {
  margin-left: 32px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(254, 80, 1, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 700px;
}

.contact-info {
  display: flex;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  background-color: var(--bg-light);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s, color 0.2s;
}

.contact-item:hover {
  background-color: #e9ecef;
}

.contact-item .material-symbols-rounded {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.download-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.download-btn:hover {
  background-color: var(--primary-hover);
  color: white;
}

.download-btn .material-symbols-rounded {
  color: white;
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Competencies */
.competency-card .card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(254, 80, 1, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.competency-card .card-icon span {
  font-size: 24px;
}

.competency-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.competency-card ul {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--text-muted);
}

.competency-card ul li {
  margin-bottom: 8px;
}

.full-width {
  grid-column: 1 / -1;
}

/* Motivation */
.motivation-card {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
}

.motivation-card p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-content);
  margin-bottom: 24px;
}

.motivation-card p:last-child {
  margin-bottom: 0;
}

/* Experience */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
}

.total-exp {
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(254, 80, 1, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.company-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.125rem;
}

.duration {
  color: var(--text-muted);
  font-size: 0.95rem;
  background-color: var(--bg-light);
  padding: 4px 12px;
  border-radius: 4px;
}

.exp-section {
  margin-bottom: 24px;
}

.exp-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.exp-section ul {
  padding-left: 20px;
}

.exp-section ul.check-list {
  list-style: none;
  padding-left: 0;
}

.exp-section ul.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-content);
}

.exp-section ul.check-list li::before {
  content: "check_circle";
  font-family: 'Material Symbols Rounded';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-color);
  font-size: 18px;
}

.exp-section ul:not(.check-list) li {
  list-style-type: disc;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-tag {
  background-color: var(--bg-light);
  color: var(--text-content);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-tag img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-card {
  padding: 40px;
}

.project-header {
  margin-bottom: 32px;
}

.project-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.project-meta {
  color: var(--text-muted);
  font-weight: 500;
}

.p-block {
  margin-bottom: 24px;
}

.p-block h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.p-block p {
  color: var(--text-content);
}

.result-block {
  background-color: rgba(254, 80, 1, 0.05);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 0;
}

.result-block h4 {
  color: var(--text-main);
}

.result-block ul {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--text-main);
  font-weight: 500;
}

.result-block ul li {
  margin-bottom: 8px;
}

/* Education */
.edu-card {
  display: flex;
  gap: 20px;
}

.edu-card .card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-light);
  color: var(--text-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.edu-major {
  font-weight: 600;
  color: var(--text-content);
}

.edu-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.mt-2 {
  margin-top: 16px;
}

.mt-2 li {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* Footer */
footer {
  background-color: #FAFAFA; /* Dailyshot light gray footer bg */
  color: #888888; /* Subtle text color */
  padding: 60px 0;
  text-align: left;
  border-top: 1px solid #F0F0F0;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-content p {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-section {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 24px;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* simple mobile view without hamburger menu for resume */
  }
  
  .contact-info {
    flex-direction: column;
    gap: 12px;
  }
  
  .timeline-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .bg-light {
    margin: 20px 0;
    padding: 40px 24px;
  }

  .card, .project-card {
    padding: 24px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .company-name {
    font-size: 1.25rem;
  }

  .project-header h3 {
    font-size: 1.5rem;
  }
}

/* Modals & Project Interactions */
.modal-trigger {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.modal-trigger:hover .card-action {
  transform: translateX(5px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.modal-content {
  background-color: var(--bg-color);
  margin: auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  background: var(--bg-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: #e9ecef;
}

.modal-header {
  margin-bottom: 32px;
  padding-right: 40px;
}

.modal-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-meta {
  color: var(--primary-color);
  font-weight: 600;
}

.modal-body {
  color: var(--text-content);
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body .m-block {
  margin-bottom: 32px;
}

.modal-body .m-block:last-child {
  margin-bottom: 0;
}

.modal-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 4px;
}

.modal-body ul {
  list-style-type: none;
  padding-left: 0;
}

.modal-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.modal-body ul li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .modal.show {
    padding: 20px 16px;
    align-items: flex-start;
  }
  .modal-content {
    padding: 32px 24px;
  }
  .modal-header h3 {
    font-size: 1.5rem;
  }
}