/*
  LINUS KIM PORTFOLIO - ORIGINAL CLEAN LIGHT DESIGN
  Warm, Clean, Full of Life & Personality
*/

:root {
  /* Warm Light Color System */
  --cream-base: #F9F7F4;
  --white-pure: #FEFDFB;
  --surface-subtle: #F4F2EF;

  --text-primary: #2A2A2A;
  --text-secondary: #6B6B6B;
  --text-tertiary: #999999;

  --yellow-warm: #F4C430;
  --yellow-deep: #E8B91C;
  --yellow-light: #FFF9E6;
  --yellow-glow: rgba(244, 196, 48, 0.15);

  --grey-warm: #8B8681;
  --border-subtle: #E8E6E3;
  --border-medium: #D4D2CF;

  /* Shadows - Soft & Natural */
  --shadow-xs: 0 1px 3px rgba(42, 42, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(42, 42, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 42, 42, 0.1);
  --shadow-lg: 0 8px 32px rgba(42, 42, 42, 0.12);
  --shadow-yellow: 0 4px 20px var(--yellow-glow);

  /* Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 72px;
  --space-16: 80px;
  --space-20: 96px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 400ms;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F9F7F4 !important;
  background: #F9F7F4 !important;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="2" width="4" height="10"/><rect x="12" y="2" width="4" height="12"/><rect x="17" y="2" width="4" height="11"/><rect x="22" y="3" width="4" height="8"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), auto !important;
}

body {
  font-family: var(--font-primary) !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--text-primary) !important;
  background-color: #F9F7F4 !important;
  background: #F9F7F4 !important;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="2" width="4" height="10"/><rect x="12" y="2" width="4" height="12"/><rect x="17" y="2" width="4" height="11"/><rect x="22" y="3" width="4" height="8"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), auto !important;
  overflow-x: hidden;
}

body.clicking {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="10" width="4" height="4"/><rect x="12" y="8" width="4" height="6"/><rect x="17" y="9" width="4" height="5"/><rect x="22" y="11" width="4" height="3"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), auto !important;
}

#wrapper {
  background-color: transparent !important;
  background-image: none !important;
  background: transparent !important;
  min-height: 100vh;
}

/* Kill template artifacts */
body::after, #wrapper::before, #wrapper::after {
  display: none !important;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

h1 {
  font-size: 72px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

h2 {
  font-size: 48px !important;
  letter-spacing: -0.01em !important;
}

h3 {
  font-size: 28px !important;
  font-weight: 600 !important;
}

h4 {
  font-size: 20px !important;
  font-weight: 600 !important;
}

p {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
}

strong {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

a {
  color: var(--yellow-warm) !important;
  text-decoration: none !important;
  transition: color var(--duration-fast) var(--ease-smooth) !important;
  position: relative !important;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%23F4C430"><rect x="7" y="2" width="4" height="10"/><rect x="12" y="2" width="4" height="12"/><rect x="17" y="2" width="4" height="11"/><rect x="22" y="3" width="4" height="8"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%232A2A2A"/><rect x="15" y="14" width="2" height="2" fill="%232A2A2A"/><rect x="20" y="14" width="2" height="2" fill="%232A2A2A"/><rect x="11" y="18" width="2" height="2" fill="%232A2A2A"/><rect x="13" y="19" width="6" height="2" fill="%232A2A2A"/><rect x="19" y="18" width="2" height="2" fill="%232A2A2A"/></g></svg>'), pointer !important;
}

a:hover {
  color: var(--yellow-deep) !important;
}

ul, ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

li {
  color: var(--text-secondary) !important;
  line-height: 1.7 !important;
}

/* ==================== NAVIGATION ==================== */
#nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 20px 0 !important;
  transition: all var(--duration-base) var(--ease-smooth) !important;
}

#nav .links {
  display: flex !important;
  justify-content: center !important;
  gap: var(--space-10) !important;
  align-items: center !important;
}

#nav .links li {
  display: inline-block !important;
  margin: 0 !important;
}

#nav .links a {
  font-size: 15px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-secondary) !important;
  position: relative !important;
  padding-bottom: 6px !important;
}

#nav .links a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--yellow-warm) !important;
  transition: width var(--duration-base) var(--ease-smooth) !important;
}

#nav .links a:hover::after,
#nav .links li.active a::after {
  width: 100% !important;
}

#nav .links a:hover,
#nav .links li.active a {
  color: var(--yellow-warm) !important;
}

#nav .icons {
  position: absolute !important;
  right: var(--space-8) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  gap: var(--space-6) !important;
  list-style: none !important;
}

#nav .icons li {
  display: inline-block !important;
  margin: 0 !important;
}

#nav .icons a {
  font-size: 22px !important;
  color: var(--text-primary) !important;
  transition: all var(--duration-fast) var(--ease-smooth) !important;
  display: inline-block !important;
}

#nav .icons a:hover {
  color: var(--yellow-warm) !important;
  transform: translateY(-2px) !important;
}

#nav .icons a .label {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
}

/* ==================== MAIN CONTENT ==================== */
#main {
  background-color: transparent !important;
  background-image: none !important;
  background: transparent !important;
  padding-top: 100px !important;
}

.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 var(--space-8) !important;
}

section,
section.container,
#main section {
  padding: var(--space-8) 0 !important;
  background: transparent !important;
}

section:first-of-type,
section.container:first-of-type,
#main section:first-of-type {
  padding-top: var(--space-12) !important;
}

.section-title {
  font-size: 48px !important;
  text-align: center !important;
  margin-bottom: var(--space-8) !important;
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
  color: var(--text-primary) !important;
}

.section-title::after {
  display: none !important;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--white-pure) !important;
  border-radius: 20px !important;
  padding: var(--space-10) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--duration-base) var(--ease-smooth) !important;
  border: 1px solid transparent !important;
  position: relative !important;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="2" width="4" height="10"/><rect x="12" y="2" width="4" height="12"/><rect x="17" y="2" width="4" height="11"/><rect x="22" y="3" width="4" height="8"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), auto !important;
}

body.clicking .card {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="10" width="4" height="4"/><rect x="12" y="8" width="4" height="6"/><rect x="17" y="9" width="4" height="5"/><rect x="22" y="11" width="4" height="3"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), auto !important;
}

.card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--yellow-light) !important;
}

/* Flip Card Styles */
.card-flip {
  perspective: 1000px !important;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="2" width="4" height="10"/><rect x="12" y="2" width="4" height="12"/><rect x="17" y="2" width="4" height="11"/><rect x="22" y="3" width="4" height="8"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), pointer !important;
}

body.clicking .card-flip {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%232A2A2A"><rect x="7" y="10" width="4" height="4"/><rect x="12" y="8" width="4" height="6"/><rect x="17" y="9" width="4" height="5"/><rect x="22" y="11" width="4" height="3"/><rect x="7" y="12" width="20" height="10" rx="2"/><rect x="10" y="14" width="2" height="2" fill="%23F4C430"/><rect x="15" y="14" width="2" height="2" fill="%23F4C430"/><rect x="20" y="14" width="2" height="2" fill="%23F4C430"/></g></svg>'), pointer !important;
}

.card-flip .card {
  transform-style: preserve-3d !important;
  transition: transform 0.6s !important;
}

.card-flip .card:hover {
  transform: none !important;
}

.card-flip.flipped .card {
  transform: rotateY(180deg) !important;
}

.card-front, .card-back {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.card-back {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: rotateY(180deg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.card-back img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 20px !important;
}

.card h3, .card h4 {
  color: var(--text-primary) !important;
  margin-bottom: var(--space-4) !important;
}

.card p {
  color: var(--text-secondary) !important;
  margin-bottom: var(--space-4) !important;
}


/* ==================== GRID SYSTEM ==================== */
.grid {
  display: grid !important;
  gap: var(--space-8) !important;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ==================== TAGS ==================== */
.tag {
  display: inline-block !important;
  padding: var(--space-2) var(--space-4) !important;
  background: var(--yellow-light) !important;
  color: var(--yellow-deep) !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin: var(--space-1) !important;
  transition: all var(--duration-fast) var(--ease-smooth) !important;
  border: 1px solid transparent !important;
}

.tag:hover {
  background: var(--yellow-warm) !important;
  color: var(--white-pure) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-yellow) !important;
}


#copyright {
  background: var(--cream-base) !important;
  padding: var(--space-6) 0 !important;
  text-align: center !important;
  border-top: 1px solid var(--border-subtle) !important;
}

#copyright ul {
  display: flex !important;
  justify-content: center !important;
  gap: var(--space-8) !important;
}

#copyright li {
  color: var(--text-tertiary) !important;
  font-size: 14px !important;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center !important; }
.text-yellow { color: var(--yellow-warm) !important; }

.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-10 { margin-top: var(--space-10) !important; }

.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-10 { margin-bottom: var(--space-10) !important; }

.mt-md { margin-top: var(--space-5) !important; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 48px !important; }
  h2 { font-size: 36px !important; }
  h3 { font-size: 24px !important; }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .container {
    padding: 0 var(--space-5) !important;
  }

  section {
    padding: var(--space-6) 0 !important;
  }

  section:first-of-type {
    padding-top: var(--space-8) !important;
  }

  #nav .links {
    gap: var(--space-5) !important;
  }

  #nav .icons {
    position: static !important;
    transform: none !important;
    justify-content: center !important;
    margin-top: var(--space-4) !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 36px !important; }

  .card {
    padding: var(--space-6) !important;
  }
}

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

.grid > * {
  animation: fadeInUp 0.6s var(--ease-smooth) !important;
}

.grid > *:nth-child(1) { animation-delay: 0.1s !important; }
.grid > *:nth-child(2) { animation-delay: 0.2s !important; }
.grid > *:nth-child(3) { animation-delay: 0.3s !important; }
.grid > *:nth-child(4) { animation-delay: 0.4s !important; }
.grid > *:nth-child(5) { animation-delay: 0.5s !important; }
.grid > *:nth-child(6) { animation-delay: 0.6s !important; }

/* ==================== ADDITIONAL OVERRIDES ==================== */

#nav .links a.active {
  color: var(--yellow-warm) !important;
}
