/* Global Reset & Theme Variables */
:root {
  --bg-color: #06080C;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --card-bg: rgba(13, 18, 30, 0.45);
  --card-border: rgba(255, 255, 255, 0.06);
  --gold-accent: #E2B13C;
  --emerald-accent: #10B981;
  --glow-gold: rgba(226, 177, 60, 0.15);
  --glow-emerald: rgba(16, 185, 129, 0.15);
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Mesh Gradients */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: float 25s infinite alternate ease-in-out;
}

.ball-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--gold-accent) 0%, transparent 80%);
  animation-duration: 28s;
}

.ball-2 {
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--emerald-accent) 0%, transparent 80%);
  animation-duration: 35s;
}

.ball-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #3B82F6 0%, transparent 80%);
  opacity: 0.08;
  animation-duration: 22s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5%, 10%) scale(1.1);
  }
  100% {
    transform: translate(-5%, -5%) scale(0.95);
  }
}

/* Header & Nav */
.header {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 10;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-icon {
  font-size: 28px;
  background: linear-gradient(135deg, var(--gold-accent), var(--emerald-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}



/* Hero Section */
.hero-section {
  padding: 96px 0 64px;
  text-align: center;
  position: relative;
  z-index: 5;
}



.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--emerald-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
}

/* Portfolio Grid */
.portfolio-section {
  padding: 48px 0 80px;
  position: relative;
  z-index: 5;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Glassmorphism Cards */
.glassmorphism {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
}

#card-swipetally:hover {
  box-shadow: 0 12px 40px 0 var(--glow-gold);
}

#card-vellum:hover {
  box-shadow: 0 12px 40px 0 var(--glow-emerald);
}

.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85); /* Bright glass edge border */
  background: linear-gradient(135deg, #FCFDFE 0%, #E2E8F0 100%); /* Cool slate-silver gradient */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 4px 12px -2px rgba(0, 0, 0, 0.4),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.card-icon-wrapper span {
  font-size: 26px;
}

.app-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Hover Interactions for the Icon Wrapper */
.portfolio-card:hover .card-icon-wrapper {
  transform: translateY(-3px) scale(1.04);
}

.portfolio-card:hover .app-logo {
  transform: scale(1.05);
}

#card-swipetally:hover .card-icon-wrapper {
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 12px 24px -6px rgba(226, 177, 60, 0.35), /* Gold drop glow */
    0 4px 12px -2px rgba(0, 0, 0, 0.3);
  border-color: rgba(226, 177, 60, 0.6);
}

#card-vellum:hover .card-icon-wrapper {
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 12px 24px -6px rgba(16, 185, 129, 0.35), /* Emerald drop glow */
    0 4px 12px -2px rgba(0, 0, 0, 0.3);
  border-color: rgba(16, 185, 129, 0.6);
}

.series-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.status-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
}

.status-tag.active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-tag.invite-only {
  background: rgba(226, 177, 60, 0.08);
  color: var(--gold-accent);
  border: 1px solid rgba(226, 177, 60, 0.15);
}

.status-tag.pending {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.card-link span {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover {
  opacity: 0.9;
}

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

.card-link.disabled {
  color: rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
}



/* Footer */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: 720px;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .philosophy-container {
    padding: 32px 24px;
  }
  .portfolio-card {
    padding: 32px;
  }
}
