/* ============================================================
   CoffeePlease.cafe — V2 Premium Design System
   Dark moody jungle café · Luxury coffee aesthetic
   Inspired by Felix Roasting Co, Ceremony Coffee, Starbucks Reserve
   ============================================================ */

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

/* --- Premium Design Tokens --- */
:root {
  /* Core Coffee Palette — warm, deep, sophisticated */
  --black-coffee:  #0A0705;
  --espresso:      #120D08;
  --dark-roast:    #1A120B;
  --french-press:  #241810;
  --mocha:         #3D2B1F;
  --cortado:       #5C4033;
  --latte:         #8B7355;
  --oat-milk:      #B8A088;
  --cream:         #D4C5B2;
  --foam:          #E8DDD0;
  --steamed-milk:  #F2ECE4;

  /* Jungle Accents — muted, organic */
  --fern-dark:     #1A2E1A;
  --jungle:        #2D4A2D;
  --sage:          #5A7A5A;
  --eucalyptus:    #7A9A7A;
  --mint-cream:    #C2D4C2;

  /* Metallic Accents — luxury cues */
  --copper:        #B87333;
  --copper-light:  #D4945A;
  --brass:         #C5A55A;
  --gold:          #D4A847;
  --gold-soft:     #E8C96A;
  --rose-gold:     #B76E6E;

  /* Functional */
  --bg:            #0A0705;
  --bg-surface:    rgba(26, 18, 11, 0.85);
  --bg-card:       rgba(36, 24, 16, 0.65);
  --bg-card-hover: rgba(45, 30, 20, 0.75);
  --bg-glass:      rgba(26, 18, 11, 0.5);
  --bg-input:      rgba(10, 7, 5, 0.7);

  --text-primary:  #E8DDD0;
  --text-body:     #B8A088;
  --text-muted:    #8B7355;
  --text-faint:    #5C4033;

  --border:        rgba(139, 115, 85, 0.12);
  --border-hover:  rgba(184, 115, 51, 0.3);
  --border-subtle: rgba(139, 115, 85, 0.06);

  /* Gradients */
  --gradient-hero:     linear-gradient(180deg, rgba(10,7,5,0) 0%, rgba(10,7,5,0.7) 40%, rgba(10,7,5,0.95) 100%);
  --gradient-card:     linear-gradient(160deg, rgba(36,24,16,0.6) 0%, rgba(26,18,11,0.8) 100%);
  --gradient-copper:   linear-gradient(135deg, #B87333 0%, #D4945A 100%);
  --gradient-gold:     linear-gradient(135deg, #C5A55A 0%, #D4A847 100%);
  --gradient-jungle:   linear-gradient(135deg, #2D4A2D 0%, #5A7A5A 100%);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.6);
  --shadow-copper: 0 4px 24px rgba(184, 115, 51, 0.15);
  --shadow-glow:  0 0 40px rgba(184, 115, 51, 0.08);

  /* Motion */
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0, 0, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   0.2s;
  --dur:        0.35s;
  --dur-slow:   0.6s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero with background image --- */
.hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-16) 0 var(--s-12);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: brightness(0.45) saturate(0.85);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,7,5,0) 0%, rgba(10,7,5,0.4) 45%, rgba(10,7,5,0.88) 75%, rgba(10,7,5,0.98) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 var(--s-6);
}

.logo-coffee {
  font-size: 2.6rem;
  display: block;
  margin-bottom: var(--s-4);
  opacity: 0.85;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 600;
  color: var(--steamed-milk);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}

.site-title .accent {
  color: var(--copper-light);
}

.site-tagline {
  font-size: 1.05rem;
  color: var(--oat-milk);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Stats --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--s-12);
  margin-top: var(--s-10);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--copper-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--s-2);
  font-weight: 500;
}

/* --- Layout --- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  position: relative;
  z-index: 1;
}

.main-content {
  padding-top: var(--s-12);
}

/* --- Divider --- */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--copper);
  margin: var(--s-4) auto;
  opacity: 0.5;
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
  gap: var(--s-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--steamed-milk);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: var(--s-1);
}

/* --- Filter Pills --- */
.filter-pills {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.pill {
  padding: 7px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
}

.pill:hover {
  border-color: var(--copper);
  color: var(--copper-light);
  background: rgba(184, 115, 51, 0.06);
}

.pill.active {
  background: var(--copper);
  color: var(--espresso);
  border-color: var(--copper);
  font-weight: 600;
}

/* --- Project Cards --- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* --- Pagination Controls --- */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-subtle);
}

.pagination-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--copper);
  color: var(--copper-light);
  background: rgba(184, 115, 51, 0.06);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--s-5);
  align-items: center;
  transition: all var(--dur) var(--ease);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Rank */
.rank-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.rank-badge.top-1 {
  background: var(--gradient-copper);
  color: var(--espresso);
  border: none;
  box-shadow: var(--shadow-copper);
}

.rank-badge.top-2 {
  background: linear-gradient(135deg, #8B8B8B 0%, #ABABAB 100%);
  color: var(--espresso);
  border: none;
}

.rank-badge.top-3 {
  background: linear-gradient(135deg, #8B7355 0%, #A18A6A 100%);
  color: var(--espresso);
  border: none;
}

/* Info */
.project-info {
  min-width: 0;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--steamed-milk);
  margin-bottom: var(--s-1);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: var(--s-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Status */
.status-badge {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-badge.idea {
  background: rgba(197, 165, 90, 0.1);
  color: var(--brass);
  border: 1px solid rgba(197, 165, 90, 0.2);
}

.status-badge.in-progress {
  background: rgba(90, 122, 90, 0.12);
  color: var(--eucalyptus);
  border: 1px solid rgba(90, 122, 90, 0.25);
}

.status-badge.launched {
  background: rgba(184, 115, 51, 0.1);
  color: var(--copper-light);
  border: 1px solid rgba(184, 115, 51, 0.25);
}

/* Progress */
.progress-wrap {
  flex: 1;
  min-width: 80px;
  max-width: 180px;
}

.progress-bar {
  height: 4px;
  background: rgba(139, 115, 85, 0.12);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--cortado) 0%, var(--copper) 60%, var(--copper-light) 100%);
  transition: width var(--dur-slow) var(--ease-out);
}

.progress-label {
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Actions */
.project-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
  flex-shrink: 0;
}

.vote-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-amount-input {
  width: 60px;
  padding: 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--copper-light);
  font-family: var(--font-body);
  text-align: center;
  font-weight: 500;
  outline: none;
  transition: all var(--dur) var(--ease);
}

.vote-amount-input:focus {
  border-color: var(--copper);
  background: var(--bg-input);
}

.vote-amount-input::-webkit-outer-spin-button,
.vote-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.coffee-count {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--copper-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.coffee-count .ico {
  font-size: 0.95rem;
  opacity: 0.7;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid var(--copper);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--copper-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-donate:hover {
  background: var(--copper);
  color: var(--espresso);
  transform: translateY(-1px);
  box-shadow: var(--shadow-copper);
}

.btn-donate .ico {
  font-size: 0.9rem;
}

/* --- Add Idea Section --- */
.add-idea-section {
  margin-top: var(--s-16);
}

.idea-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.idea-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--copper) 50%, transparent 100%);
  opacity: 0.4;
}

.form-intro {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input,
.form-textarea,
.form-select {
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--dur) var(--ease);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B7355' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--french-press);
  color: var(--foam);
}

.btn-submit {
  margin-top: var(--s-4);
  padding: 14px 36px;
  border: none;
  border-radius: var(--r-full);
  background: var(--gradient-copper);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-copper);
  filter: brightness(1.1);
}

.btn-submit:active {
  transform: translateY(0);
}

/* --- Completed Section --- */
.completed-section {
  margin-top: var(--s-16);
  padding-top: var(--s-12);
  border-top: 1px solid var(--border-subtle);
}

.completed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
}

.completed-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}

.completed-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(90, 122, 90, 0.2);
}

.completed-badge {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--eucalyptus);
  background: rgba(90, 122, 90, 0.12);
  padding: 3px 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(90, 122, 90, 0.2);
}

.completed-card .project-name {
  color: var(--cream);
  margin-bottom: var(--s-2);
  padding-right: var(--s-16);
}

.completed-card .project-desc {
  -webkit-line-clamp: 3;
  margin-bottom: var(--s-3);
}

.completed-card .coffee-count {
  font-size: 0.95rem;
  color: var(--latte);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  background: var(--french-press);
  color: var(--copper-light);
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Footer --- */
.site-footer {
  margin-top: var(--s-16);
  padding: var(--s-10) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-text {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.footer-text a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-text a:hover {
  color: var(--copper-light);
}

.footer-year {
  font-family: var(--font-display);
  font-weight: 600;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--s-12);
  color: var(--text-faint);
}

.empty-state .ico {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--s-4);
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.45s var(--ease-out) forwards;
  opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.03s; }
.project-card:nth-child(2) { animation-delay: 0.08s; }
.project-card:nth-child(3) { animation-delay: 0.13s; }
.project-card:nth-child(4) { animation-delay: 0.18s; }
.project-card:nth-child(5) { animation-delay: 0.23s; }
.project-card:nth-child(6) { animation-delay: 0.28s; }
.project-card:nth-child(7) { animation-delay: 0.33s; }
.project-card:nth-child(8) { animation-delay: 0.38s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: var(--s-12) 0 var(--s-8);
  }

  .stats-bar {
    gap: var(--s-8);
  }

  .project-card {
    grid-template-columns: 40px 1fr;
    gap: var(--s-3);
    padding: var(--s-5);
  }

  .project-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--s-3);
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--s-1);
  }

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

  .idea-form-card {
    padding: var(--s-6);
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--s-4);
  }

  .site-title {
    font-size: 2.2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }

  .progress-wrap {
    max-width: 100%;
    width: 100%;
  }

  .filter-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--s-2);
    -webkit-overflow-scrolling: touch;
  }

  .pill {
    flex-shrink: 0;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--mocha);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cortado);
}

/* --- Selection --- */
::selection {
  background: rgba(184, 115, 51, 0.25);
  color: var(--steamed-milk);
}

/* --- Expandable Cards --- */
.project-info {
  cursor: pointer;
}

.expand-icon {
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-left: var(--s-2);
  transition: color var(--dur) var(--ease);
  vertical-align: middle;
}

.project-card:hover .expand-icon,
.completed-card:hover .expand-icon {
  color: var(--copper-light);
}

.project-long-desc {
  font-size: 0.88rem;
  color: var(--oat-milk);
  line-height: 1.65;
  margin-top: var(--s-3);
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  background: rgba(10, 7, 5, 0.5);
  border-left: 2px solid var(--copper);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  animation: fadeInUp 0.3s var(--ease-out) forwards;
}

.project-card.expanded,
.completed-card.expanded {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.project-card.expanded .project-desc,
.completed-card.expanded .project-desc {
  -webkit-line-clamp: unset;
  display: none;
}

.completed-card {
  cursor: pointer;
}

/* Launched Project Links */
.launched-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid var(--copper);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--copper-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--s-2);
  margin-bottom: var(--s-3);
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
  animation: fadeInUp 0.3s var(--ease-out) forwards;
}

.launched-link:hover {
  background: var(--copper);
  color: var(--espresso);
  transform: translateY(-1px);
  box-shadow: var(--shadow-copper);
}

/* --- Newsletter Section --- */
.newsletter-section {
  margin-top: var(--s-16);
  padding: var(--s-12) 0;
  border-top: 1px solid var(--border-subtle);
}

.newsletter-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-12) var(--s-10);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--copper) 50%, transparent 100%);
  opacity: 0.4;
}

.newsletter-icon {
  font-size: 2.2rem;
  margin-bottom: var(--s-4);
  opacity: 0.85;
  animation: float 4s ease-in-out infinite;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--steamed-milk);
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}

.newsletter-subtitle {
  font-size: 0.92rem;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: var(--s-8);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  gap: var(--s-3);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input-group input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--dur) var(--ease);
  outline: none;
}

.newsletter-input-group input[type="email"]::placeholder {
  color: var(--text-faint);
}

.newsletter-input-group input[type="email"]:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.08);
}

.btn-subscribe {
  padding: 13px 28px;
  border: none;
  border-radius: var(--r-md);
  background: var(--gradient-copper);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-copper);
  filter: brightness(1.1);
}

.btn-subscribe:active {
  transform: translateY(0);
}

.newsletter-status {
  margin-top: var(--s-4);
  font-weight: 500;
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-card {
    padding: var(--s-8) var(--s-6);
  }
}
/* --- Floating Button --- */
.coffee-float {
  position: fixed;
  bottom: var(--s-8);
  right: var(--s-8);
  width: 64px;
  height: 64px;
  background: var(--foam);
  border: 2px solid var(--cortado);
  color: var(--cortado);
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all var(--dur) var(--ease-spring);
  text-decoration: none;
}

.coffee-float:hover {
  transform: translateY(-8px) scale(1.05);
  background: var(--steamed-milk);
  border-color: var(--mocha);
  color: var(--mocha);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(139, 115, 85, 0.2);
}

@media (max-width: 768px) {
  .coffee-float {
    bottom: var(--s-6);
    right: var(--s-6);
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}
