/* Page Layout for Side Ads */
.page-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
}

.ad-side {
  flex: 0 0 180px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
}

.ad-section-side {
  width: 160px;
  min-height: 600px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .ad-side {
    display: none;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --accent: #fbbf24;
  --accent-light: #fcd34d;
  --accent-dark: #f59e0b;
  --gradient-start: #fdba74;
  --gradient-end: #fef08a;
  --card-bg: #ffffff;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
}

/* Main Container with Glass Effect */
.main-container {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--accent-dark);
  background: rgba(251, 191, 36, 0.1);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--fg);
}

.hero h1 .highlight {
  color: var(--fg);
  -webkit-text-fill-color: var(--fg);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero .tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: var(--fg);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 5rem 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-tag {
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: var(--accent-dark);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 20px 40px -15px rgba(251, 191, 36, 0.2);
}

.project-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.project-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex-grow: 1;
}

.project-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-card .tech-stack span {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: "Fira Code", monospace;
}

.project-card .link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

.project-card .link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.project-card .link:hover::after {
  transform: translateX(4px);
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-card .emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.value-card p {
  color: var(--muted);
}

/* Contact Section */
.contact {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--border);
  margin: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

.contact p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
  background: transparent;
  margin-top: 2rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 0.75rem 1rem;
  }

  nav .logo {
    font-size: 1.25rem;
  }

  nav ul {
    gap: 0.25rem;
  }

  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .main-container {
    margin: 60px 0 0;
    border-radius: 0 0 24px 24px;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 2rem;
    margin: 1rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Ad Section */
.ad-section {
  padding: 2rem 3rem;
  display: flex;
  justify-content: center;
}

.ad-container {
  pointer-events: auto;
  max-width: 160px;
  min-width: 120px;
  min-height: 600px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

@media (max-width: 768px) {
  .ad-container {
    max-width: 320px;
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .ad-section {
    display: none !important;
  }
}
