/* 🍁 Autumn Colours + Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {           /* ensures the warm background always fills the screen */
  height: 100%;
}

body {
  font-family: 'Georgia', serif;
  background-color: #fbeedb;
  color: #4e342e;
  padding: 1em;
}

.page {
  display: flex;
  max-width: 1000px;
  margin: auto;
  gap: 2em;
  flex-wrap: wrap;
}

/* MAIN TEXT AREA */
.main-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* TEXT BOXES */
.text-box {
  background-color: #fff3e0;
  border: 2px solid #e6b17e;
  border-radius: 12px;
  padding: 1.2em;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.text-box h2 {
  color: #a85d36;
  margin-bottom: 0.5em;
}

.text-box p,
.text-box .project {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* SIDEBAR */
.sidebar {
  flex: 1;
  background-color: #ffe6cc;
  border-radius: 12px;
  padding: 1em;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  max-width: 280px;
}

.profile-pic {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1em;
}

.sidebar h2 {
  color: #b85c38;
  margin-bottom: 0.5em;
}

.sidebar p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #5a3e36;
}

/* ICON WOBBLE ANIMATION */
.icon {
  display: inline-block;
  margin-right: 0.3em;
  animation: wobble 2.5s infinite ease-in-out;
  transform-origin: 50% 50%;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(4deg); }
  50%      { transform: rotate(-4deg); }
  75%      { transform: rotate(2deg); }
}

/* MOBILE STYLING */
@media (max-width: 768px) {
  .page        { flex-direction: column; }
  .sidebar     { order: -1; max-width: 100%; }
}
