/* PORTFOLIO STYLESHEET */

/* CSS VARIABLES & COLOR SYSTEM
   Store reusable values here. Update once, changes everywhere.
   Makes theming and dark mode easy. */

:root {
  --pink:        #ff6faa;
  --pink-light:  #ff9ecb;
  --pink-ghost:  rgba(255,110,170,0.12);
  
  --bg:          #fff0f6;
  --bg2:         #ffe4f0;
  --bg3:         #ffd6e8;

  --text:        #2a1a22;
  --muted:       rgba(42,26,34,0.55);

  --card-bg:     rgba(255,255,255,0.75);
  --card-border: rgba(255,158,203,0.28);

  --nav-bg:      rgba(255,240,246,0.90);
  --shadow:      0 8px 32px rgba(255,110,170,0.2);

  --r:           16px;
  --pill:        28px;
  --ease:        .35s cubic-bezier(.4,0,.2,1);
}

/* Dark mode - when class="dark" is added to body */
body.dark {
  --bg:#0e090c;
  --bg2:#190a12;
  --bg3:#0e090c;
  --text:#f5e8ee;
  --muted:rgba(245,232,238,0.5);
  --card-bg:rgba(32,10,20,0.85);
  --card-border:rgba(255,110,170,0.14);
  --nav-bg:rgba(10,4,7,0.92);
}

/* Blue mode - when class="blue-mode" is added to body */
body.blue-mode {
  --bg:#ddf1fb;
  --bg2:#bde4f7;
  --bg3:#9dd5f3;
  --text:#082030;
  --muted:rgba(8,32,48,0.52);
  --card-bg:rgba(255,255,255,0.75);
  --card-border:rgba(80,170,230,0.3);
  --nav-bg:rgba(221,241,251,0.90);
}

/* Blue mode + Dark mode together - dark colors on blue background */
body.blue-mode.dark {
  --bg:#0a1620;
  --bg2:#061018;
  --bg3:#0a1620;
  --text:#e8f2f8;
  --muted:rgba(232,242,248,0.5);
  --card-bg:rgba(10,22,32,0.85);
  --card-border:rgba(80,170,230,0.14);
  --nav-bg:rgba(5,11,16,0.92);
}

/* RESET - Remove browser defaults so all browsers look the same */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(145deg, var(--bg) 0%, var(--bg2) 55%, var(--bg3) 100%);
  background-attachment: fixed;
  color: var(--text);
  transition: background var(--ease), color var(--ease);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Decorative glowing circles in corners */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 560px;
  height: 560px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(255,158,203,.16) 0%, transparent 68%);
}

body::after {
  width: 420px;
  height: 420px;
  bottom: 40px;
  left: -80px;
  background: radial-gradient(circle, rgba(255,110,170,.10) 0%, transparent 68%);
}

/* NAVIGATION */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
  transition: background var(--ease), border-color var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  max-width: 1060px;
}

.logo {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--pink);
  text-shadow: 0 2px 20px rgba(255,110,170,.25);
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 5px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .9px;
  text-transform: uppercase;
  padding: 8px 17px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  transition: all var(--ease);
}

.nav-links a:hover, .nav-links a.active {
  background: var(--pink-light);
  color: #fff;
  border-color: var(--pink-light);
  box-shadow: 0 4px 14px rgba(255,158,203,.4);
  transform: translateY(-1px);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--pill);
  border: none;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,110,170,.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255,110,170,.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--pink-light);
  color: var(--pink);
}

.btn-outline:hover {
  background: var(--pink-light);
  color: #fff;
  box-shadow: 0 8px 26px rgba(255,158,203,.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: .78rem;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}

/* SECTIONS */

section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 90px 20px 70px;
}

/* HERO SECTION */

.eyebrow {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--pink);
  opacity: .75;
  margin-bottom: .5rem;
  animation: fadeDown .7s ease both;
}

.hero-label {
  font-family: 'Trebuchet MS', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .1rem;
  animation: fadeDown .7s .1s ease both;
}

.hero-name {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  color: var(--pink);
  line-height: 1;
  text-shadow: 0 6px 40px rgba(255,110,170,.22);
  margin-bottom: 1.2rem;
  animation: fadeUp .8s .2s ease both;
}

.hero-desc {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .94rem;
  color: var(--muted);
  max-width: 370px;
  line-height: 1.85;
  margin-bottom: 2.2rem;
  animation: fadeUp .8s .35s ease both;
}

.hero-desc--wide {
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s .5s ease both;
}

/* ABOUT SECTION */

.about-cards {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.4rem 1.8rem;
  min-width: 130px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  transition: all var(--ease);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--pink-light);
}

.about-icon {
  font-size: 2rem;
  line-height: 1;
}

.about-label {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pink);
}

/* SECTION TITLES */

.section-title {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--pink);
  margin-bottom: .4rem;
}

.section-bar {
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-light), var(--pink));
  margin: .7rem auto 1.5rem;
}

.section-hint {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* GRIDS & CARDS */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  width: min(90%, 860px);
  margin-bottom: 1rem;
}

.grid.hidden {
  display: none;
}

.card {
  padding: 1.1rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  cursor: pointer;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: .84rem;
  color: var(--text);
  user-select: none;
  transition: all var(--ease);
}

.card:hover {
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

/* OUTPUT & RESULTS */

#output {
  margin-top: 1.5rem;
  width: min(90%, 860px);
  font-family: 'Trebuchet MS', sans-serif;
}

.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 1.6rem 2rem;
  font-size: .92rem;
  line-height: 2;
  animation: popIn .4s cubic-bezier(.4,0,.2,1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  align-self: flex-start;
}

.result-text {
  font-weight: 700;
  color: var(--text);
  align-self: flex-start;
}

.result-pink {
  font-weight: 700;
  color: var(--pink);
  font-size: 1.05rem;
  min-height: 1.4em;
}

.result-note {
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
  align-self: flex-start;
}

.result-spacer {
  height: .4rem;
  width: 100%;
}

/* FORM ELEMENTS */

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.field-input {
  padding: 11px 16px;
  border-radius: 12px;
  border: 2px solid var(--card-border);
  background: rgba(255,255,255,.88);
  color: #2a1a22;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: all var(--ease);
  min-width: 170px;
  max-width: 270px;
  width: 100%;
}

body.dark .field-input {
  background: rgba(40,12,24,.92);
  color: #f5e8ee;
  border-color: rgba(255,110,170,.2);
}

.field-input:focus {
  border-color: var(--pink-light);
  box-shadow: 0 0 0 4px rgba(255,158,203,.18);
}

.field-input::placeholder {
  color: var(--muted);
}

/* PROGRESS BAR - Used in Character Counter */

.bar-wrap {
  width: 100%;
  max-width: 280px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,158,203,.18);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-light), var(--pink));
  transition: width .2s ease, background .3s ease;
}

.bar-fill.hot {
  background: linear-gradient(90deg, #ff6faa, #ff2a70);
}

/* LISTS - Used in Add Items and To-Do */

.out-list {
  list-style: none;
  width: 100%;
  max-width: 340px;
}

.out-list li {
  padding: 9px 14px;
  background: rgba(255,158,203,.1);
  border-left: 3px solid var(--pink-light);
  border-radius: 8px;
  margin: 5px 0;
  font-size: .88rem;
  text-align: left;
  animation: fadeUp .28s ease both;
  transition: all .3s ease;
}

.out-list li.deletable {
  cursor: pointer;
  padding-right: 38px;
  position: relative;
}

.out-list li.deletable::after {
  content: 'x';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: .55;
  transition: opacity .2s;
}

.out-list li.deletable:hover::after {
  opacity: 1;
}

/* BADGE - Shows to-do count */

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  color: #fff;
  border-radius: 20px;
  padding: 1px 9px;
  font-size: .7rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}

/* IMAGE SWAP - Used in Change Image */

.swap-img {
  width: 480px;
  height: 300px;
  max-width: 100%;
  object-position: center top;
  object-fit: cover;
  border-radius: var(--r);
  border: 2px solid var(--card-border);
  transition: opacity .3s ease;
}

/* CONTACT SECTION */

#contact {
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .94rem;
  color: var(--muted);
}

.contact-row a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--ease);
}

.contact-row a:hover {
  color: var(--pink-light);
  text-decoration: underline;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink-ghost);
  border: 1px solid var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

/* ANIMATIONS */

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

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(.92) translateY(10px);
  }
  70% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ABOUT CARDS */

.about-cards {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Trebuchet MS', sans-serif;
  animation: fadeUp .6s ease;
}

.about-icon {
  font-size: 2.5rem;
}

.about-label {
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
}