@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --gmarket-green: #00d14b; 
  --gmarket-black: #111111;
  --text-main: #111111;
  --text-sub: #444444;
  --text-muted: #888888;
  --bg-white: #ffffff;
  --bg-gray: #f8f8f8;
  --border-light: #e5e5e5;
  --border-dark: #222222;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.15);
  --container-max: 1140px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dark Mode Class */
body.dark-mode {
  --text-main: #f5f5f5;
  --text-sub: #aaaaaa;
  --text-muted: #777777;
  --bg-white: #0a0a0a;
  --bg-gray: #151515;
  --border-light: #222222;
  --gmarket-black: #ffffff;
}

body.dark-mode header { background: rgba(10, 10, 10, 0.8) !important; }
body.dark-mode header.scrolled { background: #0a0a0a !important; }
body.dark-mode .cap-item, body.dark-mode .project-card { background: #151515; border-color: #222; }
body.dark-mode .p-stats { background: #222222; }
body.dark-mode .modal-content { background: #151515; }
body.dark-mode footer { background: #000; border-top: 1px solid #111; }
body.dark-mode .btn-download-sm { background: #ffffff; color: #000; }
body.dark-mode .btn-main { background: #ffffff; color: #000; border-color: #ffffff; }
body.dark-mode .btn-main:hover { background: var(--gmarket-green); border-color: var(--gmarket-green); color: #fff; }
body.dark-mode .btn-outline { border-color: #ffffff; color: #ffffff; }
body.dark-mode .btn-outline:hover { background: #ffffff; color: #000; }
body.dark-mode .tool-tag { background: #222222; color: #eee; }
body.dark-mode .logo { color: #fff; }
body.dark-mode .theme-toggle { color: #fff; }

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

html {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

ul, li {
  list-style: none !important;
}

/* Utils */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.green-text { color: var(--gmarket-green); }
.bold { font-weight: 800; }

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gmarket-black);
  letter-spacing: -1.2px;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul {
  display: flex;
  gap: 40px;
  align-items: center;
}

nav ul li a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: color 0.3s ease;
  padding: 8px 0;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--gmarket-green);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--gmarket-green);
}

.btn-download-sm {
  background: var(--gmarket-black);
  color: var(--bg-white);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-download-sm:hover {
  background: var(--gmarket-green);
  color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
}

/* Hero Section */
.hero {
  padding: 260px 0 180px;
  background: var(--bg-white);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: var(--gmarket-black);
  color: var(--bg-white);
  padding: 6px 14px;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -4px;
  color: var(--text-main);
  margin-bottom: 40px;
}

.hero h1 span {
  display: block;
  color: var(--gmarket-green);
}

.hero p {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-sub);
  max-width: 800px;
  margin-bottom: 56px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-main {
  display: inline-block;
  background: var(--gmarket-black);
  color: var(--bg-white);
  padding: 24px 56px;
  font-size: 1.2rem;
  font-weight: 800;
  transition: var(--transition);
  border: 2px solid var(--gmarket-black);
  white-space: nowrap;
}

.btn-main:hover {
  background: var(--gmarket-green);
  border-color: var(--gmarket-green);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 209, 75, 0.3);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gmarket-black);
  color: var(--gmarket-black);
  padding: 22px 54px;
  font-size: 1.2rem;
  font-weight: 800;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--gmarket-green);
  border-color: var(--gmarket-green);
  color: #fff;
  transform: translateY(-4px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.abstract-shape {
  width: 300px;
  height: 300px;
  background: var(--gmarket-green);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob 8s infinite alternate;
  filter: blur(40px);
  opacity: 0.2;
  position: absolute;
}

@keyframes blob {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(180deg) scale(1.2); }
}

/* Sections */
section {
  padding: 160px 0;
}

.section-header {
  margin-bottom: 80px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gmarket-green);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 4px; 
  text-transform: uppercase;
}

.section-title {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -2px;
}

/* Motivation */
.motivation-box {
  background: var(--bg-gray);
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.motivation-box::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 15rem;
  color: rgba(0, 209, 75, 0.05);
  font-family: serif;
  line-height: 1;
}

.motivation-content {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-main);
}

.motivation-content p {
  margin-bottom: 32px;
}

.motivation-content strong {
  background-color: rgba(0, 209, 75, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
}

.about-summary {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cap-item {
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  gap: 24px;
}

.cap-item i {
  font-size: 2rem;
  color: var(--gmarket-green);
  flex-shrink: 0;
}

.cap-item:hover {
  border-color: var(--gmarket-green);
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.cap-item h4 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.cap-item ul li {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cap-item ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gmarket-green);
  margin-top: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Experience */
.exp-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
}

.exp-row:last-child {
  border-bottom: 1px solid var(--border-light);
}

.exp-meta .company {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 8px;
  display: block;
}

.exp-meta .date {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.exp-meta .role {
  font-size: 1.4rem;
  color: var(--gmarket-green);
  font-weight: 800;
}

.exp-body h4 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 32px;
}

.exp-list li {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
}

.exp-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gmarket-green);
  font-weight: 900;
}

.tool-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tag {
  background: var(--bg-gray);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: 0.3s ease;
  border-radius: 2px;
}

.tool-tag:hover {
  background: var(--gmarket-black);
  color: var(--bg-white);
}

/* Projects */
.project-card {
  margin-bottom: 60px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 80px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  border-color: var(--gmarket-green);
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.project-card::after {
  content: "자세히 보기 →";
  position: absolute;
  bottom: 40px;
  right: 80px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gmarket-green);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition);
}

.project-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.p-head {
  margin-bottom: 60px;
}

.p-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.p-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.p-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.p-sec h5 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.p-sec h5::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--border-light);
}

.p-sec p, .p-sec li {
  font-size: 1.2rem;
  color: var(--text-sub);
}

.p-stats {
  display: flex;
  justify-content: space-between;
  padding: 60px;
  background: var(--bg-gray);
  text-align: center;
  border-radius: 4px;
}

.p-stats .val {
  display: block;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--gmarket-green);
  margin-bottom: 8px;
  white-space: nowrap;
}

.p-stats .lab {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.modal-content {
  background: var(--bg-white);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 80px;
  position: relative;
  border-radius: 4px;
  animation: modalSlideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.modal-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  font-size: 3rem;
  font-weight: 200;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gmarket-green);
  transform: rotate(90deg);
}

.modal-body h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.modal-period {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 60px;
}

.modal-section {
  margin-bottom: 60px;
}

.modal-section h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gmarket-green);
  display: inline-block;
}

.modal-summary-list li {
  font-size: 1.25rem;
  margin-bottom: 24px;
  padding-left: 32px;
  position: relative;
}

.modal-summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 3px;
  background: var(--gmarket-green);
}

.modal-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-sub);
}

.modal-text p {
  margin-bottom: 32px;
}

/* Footer */
footer {
  background: var(--bg-gray);
  color: var(--text-main);
  padding: 140px 0 80px;
  border-top: 1px solid var(--border-light);
}

footer .logo {
  color: var(--gmarket-black);
  font-size: 2.8rem;
  margin-bottom: 80px;
  display: block;
}

footer .logo span { color: var(--gmarket-green); }

.f-contact {
  display: flex;
  gap: 120px;
}

.f-box .lab {
  color: var(--gmarket-green);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
  letter-spacing: 2px;
}

.f-box .val {
  font-size: 2.4rem;
  font-weight: 900;
}

.copy {
  margin-top: 140px;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
}

/* Mobile Responsive Refinements */
@media (max-width: 1024px) {
  .hero { padding: 200px 0 120px; }
  .hero h1 { font-size: 4.2rem; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .exp-row { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .p-grid { grid-template-columns: 1fr; gap: 40px; }
  .p-stats { flex-direction: column; gap: 40px; }
  .modal-content { padding: 40px; }
}

@media (max-width: 768px) {
  section { padding: 100px 0; }
  .section-header { margin-bottom: 60px; }
  .hero { padding: 160px 0 80px; }
  .hero h1 { font-size: 3.2rem; letter-spacing: -2px; }
  .hero p { font-size: 1.3rem; margin-bottom: 40px; }
  .section-title { font-size: 2.8rem; }
  .motivation-box { padding: 60px 40px; }
  .motivation-content { font-size: 1.3rem; }
  .project-card { padding: 40px; }
  .project-card::after { display: none; }
  
  /* Mobile Header Navigation */
  .mobile-menu-btn { display: block; }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-white);
    padding: 100px 40px;
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1050;
  }
  nav.active { right: 0; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 30px; }
  nav ul li a { font-size: 1.5rem; width: 100%; }
  
  .f-contact { flex-direction: column; gap: 40px; }
  .f-box .val { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 2.2rem; }
  .exp-meta .company { font-size: 1.8rem; }
  .p-title { font-size: 2rem; }
  .p-stats .val { font-size: 2.4rem; }
  .modal-content { padding: 30px 20px; }
  .modal-body h2 { font-size: 2rem; }
  .btn-main, .btn-outline { width: 100%; text-align: center; padding: 18px 30px; font-size: 1.1rem; }
}
